diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome-close.yml similarity index 98% rename from .github/workflows/welcome.yml rename to .github/workflows/welcome-close.yml index e4d0ec535a..606f691bc6 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome-close.yml @@ -1,4 +1,4 @@ -name: welcome +name: Claim Contributor Message on: pull_request_target: diff --git a/.github/workflows/welcome-open.yml b/.github/workflows/welcome-open.yml new file mode 100644 index 0000000000..625bf7dcb2 --- /dev/null +++ b/.github/workflows/welcome-open.yml @@ -0,0 +1,31 @@ +name: Welcome Message + +on: + pull_request_target: + branches: [main] + types: [opened] + +permissions: + pull-requests: write + +jobs: + greeting: + name: Greet First-Time Contributors + if: github.repository == 'npmx-dev/npmx.dev' + runs-on: ubuntu-latest + steps: + - uses: zephyrproject-rtos/action-first-interaction@58853996b1ac504b8e0f6964301f369d2bb22e5c + with: + pr-opened-message: | + Hello! Thank you for opening your **first PR** to npmx, @${{ github.event.pull_request.user.login }}! 🚀 + + Here’s what will happen next: + + 1. Our GitHub bots will run to check your changes. + If they spot any issues you will see some error messages on this PR. + Don’t hesitate to ask any questions if you’re not sure what these mean! + + 2. In a few minutes, you’ll be able to see a preview of your changes on Vercel + + 3. One or more of our maintainers will take a look and may ask you to make changes. + We try to be responsive, but don’t worry if this takes a few days.