react-native-macos/.github
Luna Wei 767f8e0249 Add bots as a yarn workspace and update danger action (#34652)
Summary:
allow-large-files

When working on https://github.com/facebook/react-native/pull/34614, danger is failing because it doesn't share `node_modules` with the root directory where `typescript` is installed as we added it as a parser in our eslint config.

By setting `bots` as a yarn workspace, dependencies are all installed under the root `node_modules` folder and in local testing (detailed in test section) we no longer have the `typescript module not found` error. However, danger will continue to fail on https://github.com/facebook/react-native/pull/34614 as the `danger_pr` Github action runs from what's defined on `main`.

Once these changes land, I can rebase https://github.com/facebook/react-native/pull/34614 on it and danger's eslint should pass.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal][Fixed] - Add `bots` directory as a yarn workspace and update `danger_pr` Github action

Pull Request resolved: https://github.com/facebook/react-native/pull/34652

Test Plan:
To verify this fix I had to run:
```
react-native $ yarn && cd bots
react-native/bots$ yarn run danger pr https://github.com/facebook/react-native/pull/34614
```

which resulted in
```
❯ yarn run danger pr https://github.com/facebook/react-native/pull/34614
yarn run v1.22.19
$ lunaleaps/react-native/node_modules/.bin/danger pr https://github.com/facebook/react-native/pull/34614
Starting Danger PR on facebook/react-native#34614

Danger: ✓ found only warnings, not failing the build
## Warnings
🔒 package.json - <i>Changes were made to package.json. This will require a manual import by a Facebook employee.</i>

  Done in 12.78s.
```
Verified this also on another PR:
```
yarn run danger pr https://github.com/facebook/react-native/pull/34650
```

Reviewed By: NickGerleman

Differential Revision: D39435286

Pulled By: lunaleaps

fbshipit-source-id: 8c82f49facf162f4fc0918e3abd95eb7e4ad1e37
2022-09-12 22:03:34 -07:00
..
ISSUE_TEMPLATE Fix broken `ISSUE_TEMPLATE` due to extra `:` (#33892) 2022-05-23 09:17:31 -07:00
workflows Add bots as a yarn workspace and update danger action (#34652) 2022-09-12 22:03:34 -07:00
CODEOWNERS Added @matt-oakes as CODEOWNER of the ESLint package (#27689) 2020-01-06 16:13:30 -08:00
ISSUE_TEMPLATE.md Issues without any template will get closed (#27996) 2020-02-07 17:55:52 -08:00
PULL_REQUEST_TEMPLATE.md (PULL_REQUEST_TEMPLATE) update link to changelog documentation (#34206) 2022-07-19 05:47:17 -07:00
RELEASE_TEMPLATE.md Circle CI: Create GiHub Release draft when bumping version 2022-07-14 13:42:08 -07:00
SUPPORT.md Fix reactiflux url (#30709) 2021-01-14 14:58:10 -08:00
respond-to-issue-based-on-label.yml Remove action to close upgrade-related issues 2021-10-25 10:48:22 -07:00