Skip to content

Commit

Permalink
Add greet action 🎉 (#37499)
Browse files Browse the repository at this point in the history
Summary:
Currently we do _not_ greet; **"First Time Contributors"**.
It is important to greet every first time contributor keep the OSS community thriving. 😊

This PR; Adds a greet action `greet.yml` 🎉, which comments under First Time Contributors PRs, greeting them as well suggesting some basic steps/guidelines.

## Changelog:

[GENERAL] [ADDED] - [Actions] Add greet action 🎉

Pull Request resolved: #37499

Test Plan: - Should greet 1st time contributors

Reviewed By: cortinico

Differential Revision: D46142126

Pulled By: cipolleschi

fbshipit-source-id: 5a619a485409fda6fe895feffb736e878fb206ee
  • Loading branch information
Pranav-yadav authored and facebook-github-bot committed May 24, 2023
1 parent 6714b99 commit 1671247
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/greet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 🎉 Greet First Time Contributors 🎉
# This workflow is triggered on pull requests.

on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
check_for_first_contribution:
name: '🎉 Greet First Time Contributors'
permissions:
contents: read
pull-requests: write # for actions/first-interaction to comment on PR
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1.1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
"### Hi there, :wave:
### Congratulations :tada: on your **_'First Pull Request'_** to [React Native](https://github.com/facebook/react-native)! :partying_face:
Thank you, :pray: for taking the time to contribute to this project and share your ideas.
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:
<details>
<summary>P.S.: In the <i>meantime</i>, you should go through below checklist: <sup>(click to expand)</sup>
</summary>
1. Make sure you have _signed_ the [CLA](https://code.facebook.com/cla) :balance_scale:,
2. There are _no_ typos :sweat_smile:,
3. There are _no_ warnings reported by the **Danger** workflow :robot:,
4. You ran `yarn prettier` and `yarn lint` :nail_care:,
5. All tests :test_tube: are _passing_. i.e. The CI checks should be green :green_circle:, and
6. You have _added_ necessary tests for your code, if it's a refactor or a new functionality. :test_tube:
</details>
---
<sup>
[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)
</sup>"

1 comment on commit 1671247

@Pranav-yadav
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cipolleschi you didn't import the latest changes, it still has those "s 🙂

Please sign in to comment.