react-native/docs
Héctor Ramos 2c076cdbdf Flag large pull requests, add large-pr command
Summary:
We sometimes get large PRs that sit for a long time without being reviewed. In some cases, the PR touches too many files or lines, and the author would benefit from splitting the PR into smaller easier-to-review PRs. In this PR, we automatically flag such PRs using the existing Danger PR automation functionality.

This PR achieves the objective by doing the following:

* Add facebook-open-source-bot to `IssueCommands.txt`, allowing it to add labels and close issues/PRs via facebook-github-bot commands.
* Adds a `large-pr` command to facebook-github-bot. This command will add a short blurb, apply a new "Large PR" label, and close the PR.
* Updates the Dangerfile to check for PRs that touch over 600 lines and/or files. In such cases it will warn and then issue the large-pr command.

Additional changes:

* Tag core contributor PRs with the "Core Team" label. This is a slight change in policy, in that the label used to be applied after the fact (after the PR was escalated for review). It's more convenient to monitor labels, so we'll start checking for PRs tagged as such and ensure they get escalated as needed. cc skevy

Thanks to TheSavior for suggesting this change.

Testing against PR #10084 which touches over 600 lines:

```
$ cd danger
$ DANGER_GITHUB_API_TOKEN="e622517d9f1136ea8900""07c6373666312cdfaa69" npm run danger pr https://github.com/facebook/react-native/pull/10084

> @ danger /Users/hramos/git/react-native/danger
> node ./node_modules/.bin/danger "pr" "https://github.com/facebook/react-native/pull/10084"

{
  fails: [],
  warnings: [
    {
      message: "📋 Test Plan - <i>This PR appears to be missing a Test Plan.</i>"
    },
    {
      message: " Big PR - <i>This PR is extremely unlikely to get reviewed because it touches 613 lines.</i>"
    }
  ],
  messages: [],
  markdowns: ["facebook-github-bot label Needs more information", "facebook-github-bot large-pr"]
}
```

Result: successfully flagged as being a large PR.
Closes https://github.com/facebook/react-native/pull/15519

Differential Revision: D5647085

Pulled By: hramos

fbshipit-source-id: dfa0f6580b9373085eba856de257a8d2452efbdc
2017-08-16 21:00:44 -07:00
..
Accessibility.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
AndroidBuildingFromSource.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
AndroidUIPerformance.md Merge Android UI Performance into Performance doc, reorder sidebar 2017-03-06 10:10:04 -08:00
Animations.md Adding documentation to useNativeDriver portion of the Animated API 2017-08-04 15:41:01 -07:00
BuildingForAppleTV.md Apple TV: RCTTabBar selection controlled by native after render (fix #15081) 2017-08-10 05:36:06 -07:00
Colors.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
CommunicationIOS.md Fix typo 2017-06-14 02:03:27 -07:00
ComponentsAndAPIs.md Breaking - Remove AdSupportIOS 2017-07-26 13:32:41 -07:00
Contributing.md Cleanup stray markdown files, update contributing guidelines 2017-08-04 16:18:01 -07:00
Debugging.md Add proper Stetho debugging setup documentation 2017-08-04 16:47:00 -07:00
DirectManipulation.md Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
GestureResponderSystem.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
GettingStarted.md Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
HandlingTextInput.md Retry for #14830 - Fix "Handling Text Input" tutorial's "next" within text 2017-07-24 10:15:47 -07:00
HandlingTouches.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
HeadlessJSAndroid.md Fix mistake acquireWakeLockNow in headless js section 2017-07-28 03:16:21 -07:00
HeightAndWidth.md Update examples in docs and address version lag of CRNA 2017-05-16 23:51:28 -07:00
Images.md Update Images.md with ImageBackground 2017-07-23 08:45:44 -07:00
IntegrationWithExistingApps.md Rename module name to module path 2017-08-10 09:19:20 -07:00
JavaScriptEnvironment.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
LayoutWithFlexbox.md Update examples in docs and address version lag of CRNA 2017-05-16 23:51:28 -07:00
LinkingLibraries.md Fix typo 2017-08-10 03:21:07 -07:00
Maintainers.md Flag large pull requests, add large-pr command 2017-08-16 21:00:44 -07:00
MoreResources.md Move CONTRIBUTING guidelines to a standalone doc in the website. 2017-07-19 10:23:06 -07:00
MoviesExample.json Fix typo and add comments to the example app 2015-03-27 20:44:20 +00:00
NativeComponentsAndroid.md fix typo 2017-08-04 11:05:02 -07:00
NativeComponentsIOS.md Docs: Updated iOS Component Guide 2017-07-19 15:31:29 -07:00
NativeMethodsMixin.md Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
NativeModulesAndroid.md Added documentation for iOS app extensions 2017-07-28 12:36:14 -07:00
NativeModulesIOS.md document how to export consts from a swift native module 2017-08-03 13:13:25 -07:00
Navigation.md Update Navigation.md 2017-07-24 11:31:01 -07:00
Networking.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
Performance.md Add pertinent info for fresh flatlisters 2017-08-07 17:58:42 -07:00
PlatformSpecificInformation.md Add a section about Platform.Version on iOS 2017-06-15 09:21:18 -07:00
Props.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
RunningOnDevice.md troubleshooting docs (clone #14885) 2017-08-04 09:50:02 -07:00
RunningOnDeviceAndroid.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnDeviceIOS.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnSimulatorIOS.md Merge Android UI Performance into Performance doc, reorder sidebar 2017-03-06 10:10:04 -08:00
SignedAPKAndroid.md Uninstall app before testing the production build 2017-06-23 20:31:17 -07:00
State.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
Style.md Standardize on using AwesomeProject for AppRegistry calls. 2017-05-30 14:20:42 -07:00
StyleGuide.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
Testing.md Cleanup stray markdown files, update contributing guidelines 2017-08-04 16:18:01 -07:00
Timers.md Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
TodayWidget.md Added documentation for iOS app extensions 2017-07-28 12:36:14 -07:00
Troubleshooting.md Updated troubleshooting - changing port section 2017-08-16 19:47:20 -07:00
Tutorial.md Move HelloWorld template to a single index.js entry point 2017-08-03 14:02:43 -07:00
UnderstandingCLI.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
Upgrading.md What to Expect from Maintainers 2017-07-28 08:18:53 -07:00
UsingAListView.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00
UsingAScrollView.md New Handling Touches Tutorial 2017-06-07 11:51:21 -07:00