Skip to content

Commit

Permalink
Add a new GitHub Action to greet newcomers (pantsbuild#18977)
Browse files Browse the repository at this point in the history
This Action leverages https://github.com/actions/first-interaction to
comment on a user's first Issue and/or PR with a static message.

In the future we might switch the account to use our automation account
to be a bit more personalized.

---------

Co-authored-by: Huon Wilson <[email protected]>
  • Loading branch information
thejcannon and huonw authored May 18, 2023
1 parent c56d941 commit cba5b43
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/welcome-newcomers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: first-interaction

on:
issues:
types: [opened]
pull_request:
branches: [main]
types: [opened]

jobs:
check_for_first_interaction:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.WORKER_PANTS_SAY_HI_PAT }}
issue-message: |
Welcome to the Pantsbuild Community. This looks like your first issue here. Thanks for taking the time to write it.
If you haven't already, feel free to [come say hi on Slack](https://docs.google.com/forms/d/e/1FAIpQLSf9zgf-MXRnVDJbrVEST3urqneq7LCcy0zw8qU-GH4hPMn52A/viewform?usp=sf_link).
If you have questions, or just want to surface this issue, check out the `#development` channel.
(If you want to check it out without logging in, check out our [Linen mirror](https://chat.pantsbuild.org/))
Thanks again, and we look forward to your next Issue/PR :smile:!
pr-message: |
Welcome to the Pantsbuild Community. This looks like your first PR here.
We are so grateful for each an every contribution, big or small.
So thanks for spending your time and energy making this project better.
If you haven't gotten a reply in a week, feel free to gently comment "bump" to ping the project admins.
If you haven't already, feel free to [come say hi on Slack](https://docs.google.com/forms/d/e/1FAIpQLSf9zgf-MXRnVDJbrVEST3urqneq7LCcy0zw8qU-GH4hPMn52A/viewform?usp=sf_link).
If you have questions, or just want to surface this PR, check out the `#development` channel.
(If you want to check it out without logging in, check out our [Linen mirror](https://chat.pantsbuild.org/))
Thanks again for this PR, and we'll be on the lookout for your next one :smile:!

0 comments on commit cba5b43

Please sign in to comment.