|
| 1 | +name: 🎉 Greet First Time Contributors 🎉 |
| 2 | +# This workflow is triggered on pull requests. |
| 3 | + |
| 4 | +on: |
| 5 | + pull_request: |
| 6 | + types: [opened] |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +jobs: |
| 12 | + check_for_first_contribution: |
| 13 | + name: "🎉 Greet First Time Contributors" |
| 14 | + permissions: |
| 15 | + contents: read |
| 16 | + pull-requests: write # for actions/first-interaction to comment on PR |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - uses: actions/first-interaction@v1.1.1 |
| 20 | + with: |
| 21 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 22 | + pr-message: | |
| 23 | + "### Hi there, :wave: |
| 24 | + |
| 25 | + ### Congratulations :tada: on your **_'First Pull Request'_** to [React Native](https://github.com/facebook/react-native)! :partying_face: |
| 26 | + |
| 27 | + Thank you, :pray: for taking the time to contribute to this project and share your ideas. |
| 28 | + |
| 29 | + Someone from the team will review your PR and get back to you _as soon as possible_ with feedback if any. :blush: Post review, and if all tests are passing, your PR will be _imported_ to internal FB phabricator and should be merged if it also passes all internal tests. :partying_face: |
| 30 | + |
| 31 | + <details> |
| 32 | + <summary>P.S.: In the <i>meantime</i>, you should go through below checklist: <sup>(click to expand)</sup> |
| 33 | + </summary> |
| 34 | + |
| 35 | + 1. Make sure you have _signed_ the [CLA](https://code.facebook.com/cla) :balance_scale:, |
| 36 | + 2. There are _no_ typos :sweat_smile:, |
| 37 | + 3. There are _no_ warnings reported by the **Danger** workflow :robot:, |
| 38 | + 4. You ran `yarn prettier` and `yarn lint` :nail_care:, |
| 39 | + 5. All tests :test_tube: are _passing_. i.e. The CI checks should be green :green_circle:, and |
| 40 | + 6. You have _added_ necessary tests for your code, if it's a refactor or a new functionality. :test_tube: |
| 41 | + |
| 42 | + </details>a note to check what Danger is reporting, as people tend to ignore it. |
| 43 | + |
| 44 | + --- |
| 45 | + |
| 46 | + <sup> |
| 47 | + |
| 48 | + [Contributing Guidelines](https://reactnative.dev/contributing/overview) | [React Native Website](https://reactnative.dev/) | [Framework discussions, proposals and RFCs](https://github.com/react-native-community/discussions-and-proposals/discussions) |
| 49 | + |
| 50 | + </sup>" |
0 commit comments