From d8dc5d23dff0099e13c095fb603b0ceecd4c08d3 Mon Sep 17 00:00:00 2001 From: Samyak Aditya <91079592+samyak-aditya@users.noreply.github.com> Date: Sun, 13 Oct 2024 01:33:38 +0530 Subject: [PATCH] Create auto-comment-on-pr-merge.yml --- .../workflows/auto-comment-on-pr-merge.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/auto-comment-on-pr-merge.yml diff --git a/.github/workflows/auto-comment-on-pr-merge.yml b/.github/workflows/auto-comment-on-pr-merge.yml new file mode 100644 index 0000000..c88e9cc --- /dev/null +++ b/.github/workflows/auto-comment-on-pr-merge.yml @@ -0,0 +1,37 @@ +name: Auto Comment on PR Merge + +on: + pull_request_target: + types: [closed] + +permissions: + issues: write + pull-requests: write + +jobs: + comment: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + steps: + - name: Add Comment to Merged PR + run: | + COMMENT=$(cat <