From 170bbcf26e8d7423cf6e728665aeaf86f0a35ddb Mon Sep 17 00:00:00 2001 From: Muskan Date: Tue, 24 Mar 2026 18:54:38 -0700 Subject: [PATCH 1/3] Add GitHub Actions workflow for welcome comment --- .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 6c33535c202cfa86a3292db6f048ad08e16b0e3e Mon Sep 17 00:00:00 2001 From: Muskan Date: Tue, 24 Mar 2026 18:56:43 -0700 Subject: [PATCH 2/3] Add welcome job to pull request workflow Add a job to post a welcome comment on new pull requests. --- .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 6d22b8ac0047f46cfb4cacbb4643665977c4bd9e Mon Sep 17 00:00:00 2001 From: Muskan Date: Tue, 24 Mar 2026 18:58:26 -0700 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 }}