From b01d0410b53331eb774a507fb9c7c7853305c97e Mon Sep 17 00:00:00 2001 From: Jayesh Saini <136019884+sainjay@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:50:31 -0500 Subject: [PATCH 1/3] Add GitHub Actions workflow for welcome comments --- .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 13e505088f19f4c96cc48792f4ca90222447a106 Mon Sep 17 00:00:00 2001 From: Jayesh Saini <136019884+sainjay@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:51:55 -0500 Subject: [PATCH 2/3] Add welcome job to GitHub Actions workflow Add a job to post a welcome comment on 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 6c33c73a1f25e91b11d3bdae0976e5cb835e182e Mon Sep 17 00:00:00 2001 From: Jayesh Saini <136019884+sainjay@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:53:18 -0500 Subject: [PATCH 3/3] Add welcome comment step to GitHub Actions workflow --- .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 }}