react-native-macos/scripts
Héctor Ramos 44878ea9bc Fix code analysis bot failure to post lint warnings on pull requests
Summary:
The code analysis script takes the results of `eslint .` and filters out any messages for filepaths outside of what is modified in a given pull request. This diff fixes an issue where the bot will fail to post warnings if a pull request contains multiple commits, where the most recent commit is a rebase (e.g. 63c00f20a7 in https://github.com/facebook/react-native/pull/22470). This happens because the script looks for files changed in the most recent commit in a PR.

In this diff, we switch to a new GitHub API that returns the list of all files changed by a PR, obviating the need to go through individual commits in a PR to look for changed files.

Reviewed By: TheSavior

Differential Revision: D13324154

fbshipit-source-id: f9f50028439d1969b0feea65f0b3e8bf75ac1a33
2018-12-05 13:15:56 -08:00
..
circleci Fix code analysis bot failure to post lint warnings on pull requests 2018-12-05 13:15:56 -08:00
versiontemplates Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle Plugin to 3.2.0 (#21632) 2018-12-05 09:06:31 -08:00
android-e2e-test.js Remove unused variables (#22097) 2018-11-04 10:41:46 -08:00
android-setup.sh bump Android NDK to r17c (#21628) 2018-10-11 22:08:37 -07:00
bump-oss-version.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ios-configure-glog.sh Upgrade folly to v2018.10.22.00 for iOS (#21976) 2018-10-29 12:13:11 -07:00
ios-install-third-party.sh Upgrade folly to v2018.10.22.00 for iOS (#21976) 2018-10-29 12:13:11 -07:00
launchPackager.bat Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
launchPackager.command Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
objc-test-ios.sh Bump RN OSS iOS tests to iOS SDK 12.1, Xcode 10.1 2018-12-04 12:06:59 -08:00
objc-test-tvos.sh Bump RN OSS iOS tests to iOS SDK 12.1, Xcode 10.1 2018-12-04 12:06:59 -08:00
objc-test.sh Use "Legacy Build System" 2018-10-19 08:45:31 -07:00
packager.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
process-podspecs.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
publish-npm.js Deploy to npm on tagged commits only (#21250) 2018-09-22 09:16:58 -07:00
react-native-xcode.sh Accept node arguments when iOS app is built (#22423) 2018-11-30 17:31:47 -08:00
run-android-ci-instrumentation-tests.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-android-emulator.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-android-local-integration-tests.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-android-local-unit-tests.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
run-ci-e2e-tests.js Use "Legacy Build System" 2018-10-19 08:45:31 -07:00
run-instrumentation-tests-via-adb-shell.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
sync-css-layout.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
test-manual-e2e.sh RN: Missing Copyright Headers 2018-10-31 01:37:26 -07:00
try-n-times.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
validate-android-device-env.sh Use ShellCheck (#19681) 2018-09-28 17:03:24 -07:00
validate-android-sdk.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
validate-android-test-env.sh decouple compileSdk version from build tools version (#21205) 2018-09-19 11:48:52 -07:00
validate-ios-test-env.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00