From 1f56ec354ec6cca7d5fdf68c82676fe027591d70 Mon Sep 17 00:00:00 2001 From: Ratan Gulati Date: Sat, 13 Jul 2024 22:33:02 +0530 Subject: [PATCH] added workflow for autocommenting on PR Merged (#161) * added workflow for autocommenting on PR Merged Signed-off-by: Ratan Gulati * added workflow for autocommenting on PR Merged Signed-off-by: Ratan Gulati * updated workflow * Updated autocomment on PR merge workflow * Updated autocomment on PR merge workflow --------- Signed-off-by: Ratan Gulati --- .github/workflows/autocomment_on_PR_merge.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/autocomment_on_PR_merge.yml diff --git a/.github/workflows/autocomment_on_PR_merge.yml b/.github/workflows/autocomment_on_PR_merge.yml new file mode 100644 index 0000000..ea6b261 --- /dev/null +++ b/.github/workflows/autocomment_on_PR_merge.yml @@ -0,0 +1,37 @@ +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 <