diff --git a/.github/workflows/reusable-welcome-new-contributors.yml b/.github/workflows/reusable-welcome-new-contributors.yml new file mode 100644 index 0000000..43d6ff1 --- /dev/null +++ b/.github/workflows/reusable-welcome-new-contributors.yml @@ -0,0 +1,21 @@ +name: Welcome New Contributors + +on: + workflow_call: + +permissions: + pull-requests: write +jobs: + welcome: + runs-on: ubuntu-latest + steps: + - name: First Interaction + uses: actions/first-interaction@v3 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + pr_message: | + Hello! 👋 + + Thanks for opening this pull request! Please check out our [contributing guidelines](https://make.wordpress.org/cli/handbook/contributions/contributing/). We appreciate you taking the initiative to contribute to this project. + + Contributing isn't limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation. diff --git a/.github/workflows/sync-workflows.yml b/.github/workflows/sync-workflows.yml index ebcbe94..64cfbc8 100644 --- a/.github/workflows/sync-workflows.yml +++ b/.github/workflows/sync-workflows.yml @@ -24,6 +24,7 @@ jobs: ^.editorconfig ^.github/workflows/copilot-setup-steps.yml ^.github/workflows/regenerate-readme.yml + ^.github/workflows/welcome-new-contributors.yml ^.github/workflows/issue-triage.yml ^.github/workflows/check-branch-alias.yml ^.github/workflows/manage-labels.yml diff --git a/.github/workflows/welcome-new-contributors.yml b/.github/workflows/welcome-new-contributors.yml new file mode 100644 index 0000000..c38e033 --- /dev/null +++ b/.github/workflows/welcome-new-contributors.yml @@ -0,0 +1,12 @@ +name: Welcome New Contributors + +on: + pull_request_target: + types: [opened] + branches: + - main + - master + +jobs: + welcome: + uses: wp-cli/.github/.github/workflows/reusable-welcome-new-contributors.yml@main