From ccac693184bc2f2f144e3d55ce6af55c70e7af5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 30 Mar 2023 18:29:29 +0200 Subject: [PATCH] github: add GitHub action to greet first time contributors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the configuration file for a GitHub action that will greet first-time contributor the first time they: - open an issue - open a PR - get a PR of theirs merged Fixes #56092. Signed-off-by: Benjamin Cabé --- .../greet_first_time_contributor.yml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/greet_first_time_contributor.yml diff --git a/.github/workflows/greet_first_time_contributor.yml b/.github/workflows/greet_first_time_contributor.yml new file mode 100644 index 000000000000000..fc43593645203e2 --- /dev/null +++ b/.github/workflows/greet_first_time_contributor.yml @@ -0,0 +1,50 @@ +name: Greet first time contributor + +on: + issues: + types: [opened] + pull_request: + types: [opened, closed] + +jobs: + check_for_first_interaction: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: kartben/first-interaction@v1.1.2-zephyr + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + issue-message: > + Hi @${{github.event.issue.user.login}}! We appreciate you submitting your first issue + for our open-source project. 🌟 + + + Even though I'm a bot, I can assure you that the whole community is genuinely grateful + for your time and effort. 🤖💙 + + pr-opened-message: > + Hello @${{ github.event.pull_request.user.login }}, and thank you very much for your + first pull request to the Zephyr project! + + + As our Continuous Integration jobs run checks on your PR to ensure it's compliant and + doesn't cause any issues, you might want to take this opportunity to review the + project's [Contributor + Expectations](https://docs.zephyrproject.org/latest/contribute/contributor_expectations.html) + and make any updates to your pull request if necessary. 😊 + + pr-merged-message: > + Hi @${{ github.event.pull_request.user.login }}! + + Congratulations on getting your very first Zephyr pull request merged 🎉🥳. This is a + fantastic achievement, and we're thrilled to have you as part of our community! + + + To celebrate this milestone and showcase your contribution, we'd love to award you the + Zephyr Technical Contributor badge. If you're interested, please claim your badge by + filling out this form: [Claim Your Zephyr Badge](https://forms.gle/oCw9iAPLhUsHTapc8). + + + Thank you for your valuable input, and we look forward to seeing more of your + contributions in the future! 🪁