From d392834e17a00cb27bf1a4d181e99df9dbf39684 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 27 Nov 2025 22:51:23 +0100 Subject: [PATCH 1/2] Add PR comment workflow --- .../reusable-welcome-new-contributors.yml | 19 +++++++++++++++++++ .github/workflows/sync-workflows.yml | 1 + .../workflows/welcome-new-contributors.yml | 12 ++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .github/workflows/reusable-welcome-new-contributors.yml create mode 100644 .github/workflows/welcome-new-contributors.yml diff --git a/.github/workflows/reusable-welcome-new-contributors.yml b/.github/workflows/reusable-welcome-new-contributors.yml new file mode 100644 index 0000000..9ba791c --- /dev/null +++ b/.github/workflows/reusable-welcome-new-contributors.yml @@ -0,0 +1,19 @@ +name: Welcome New Contributors + +on: + workflow_call: + +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 e4a7316..d8b9ee7 100644 --- a/.github/workflows/sync-workflows.yml +++ b/.github/workflows/sync-workflows.yml @@ -24,6 +24,7 @@ jobs: ^.editorconfig ^.github/workflows/code-quality.yml ^.github/workflows/regenerate-readme.yml + ^.github/workflows/welcome-new-contributors.yml ^AGENTS.md TARGET_REPOS: | wp-cli/admin-command 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 From 0c7e388b7d21bf337e166f5adaa08dc9cc24f4db Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 27 Nov 2025 22:51:39 +0100 Subject: [PATCH 2/2] Update `.gemini` settings The settings format changed in newer versions --- .gemini/settings.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gemini/settings.json b/.gemini/settings.json index 34eb9b6..ea97888 100644 --- a/.gemini/settings.json +++ b/.gemini/settings.json @@ -1 +1,10 @@ -{ "contextFileName": "AGENTS.md", "advanced": { "bugCommand": { "urlTemplate": "https://github.com/wp-cli/.github/issues/new?template=1-BUG_REPORT.md&title={title}" } } } +{ + "context": { + "fileName": "AGENTS.md" + }, + "advanced": { + "bugCommand": { + "urlTemplate": "https://github.com/wp-cli/.github/issues/new?template=1-BUG_REPORT.md&title={title}" + } + } +} \ No newline at end of file