Skip to content

Commit 7554b40

Browse files
swissspidyCopilot
andauthored
Add PR comment workflow (#176)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ff2458b commit 7554b40

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Welcome New Contributors
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
pull-requests: write
8+
jobs:
9+
welcome:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: First Interaction
13+
uses: actions/first-interaction@v3
14+
with:
15+
repo_token: ${{ secrets.GITHUB_TOKEN }}
16+
pr_message: |
17+
Hello! 👋
18+
19+
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.
20+
21+
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.

.github/workflows/sync-workflows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
^.editorconfig
2525
^.github/workflows/copilot-setup-steps.yml
2626
^.github/workflows/regenerate-readme.yml
27+
^.github/workflows/welcome-new-contributors.yml
2728
^.github/workflows/issue-triage.yml
2829
^.github/workflows/check-branch-alias.yml
2930
^.github/workflows/manage-labels.yml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Welcome New Contributors
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
welcome:
12+
uses: wp-cli/.github/.github/workflows/reusable-welcome-new-contributors.yml@main

0 commit comments

Comments
 (0)