From 261376d14190bd34f48109463b28938329911cec Mon Sep 17 00:00:00 2001 From: Uppuluri Kalyani <105410881+UppuluriKalyani@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:16:25 +0530 Subject: [PATCH] Create autocomment-pr-merge.yml --- .github/workflows/autocomment-pr-merge.yml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/autocomment-pr-merge.yml diff --git a/.github/workflows/autocomment-pr-merge.yml b/.github/workflows/autocomment-pr-merge.yml new file mode 100644 index 00000000..a1d5347d --- /dev/null +++ b/.github/workflows/autocomment-pr-merge.yml @@ -0,0 +1,36 @@ +name: Auto Comment on PR Merge + +on: + pull_request: + types: [closed] + +permissions: + issues: write + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.event.pull_request.merged == true + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Add Comment to Issue + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + COMMENT=$(cat <