From 1c79692e1584e8e2a105a9981b949528330d0413 Mon Sep 17 00:00:00 2001 From: Ross Tarrant Date: Fri, 17 Apr 2026 08:55:06 +0100 Subject: [PATCH 1/3] complete step 1 --- .github/workflows/welcome.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/workflows/welcome.yml diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 0000000..6c9a6eb --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,6 @@ +name: Post welcome comment +on: + pull_request: + types: [opened] +permissions: + pull-requests: write From b6bd5ca58cda5b65f1f5e6b42c26d98367f0bf0f Mon Sep 17 00:00:00 2001 From: Ross Tarrant Date: Fri, 17 Apr 2026 09:03:07 +0100 Subject: [PATCH 2/3] Add GitHub Actions workflow for welcome comment --- .github/workflows/welcome.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 6c9a6eb..7b96b45 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -4,3 +4,7 @@ on: types: [opened] permissions: pull-requests: write +jobs: + welcome: + name: Post welcome comment + runs-on: ubuntu-latest From 3c71676ab23416f5acaa28d9b3918a18b677658f Mon Sep 17 00:00:00 2001 From: Ross Tarrant Date: Fri, 17 Apr 2026 09:05:48 +0100 Subject: [PATCH 3/3] Add step to post welcome comment on PR --- .github/workflows/welcome.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 7b96b45..3c514e5 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -8,3 +8,8 @@ jobs: welcome: name: Post welcome comment runs-on: ubuntu-latest + steps: + - run: gh pr comment "$PR_URL" --body "Welcome to the repository!" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }}