From e18e6207d73483c31ff1e72be20a90d7c87dc6d1 Mon Sep 17 00:00:00 2001 From: Sejal Date: Fri, 11 Oct 2024 14:41:48 +0530 Subject: [PATCH] Create auto-comment-pr-merge.yml Signed-off-by: Sejal --- .github/workflows/auto-comment-pr-merge.yml | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/auto-comment-pr-merge.yml diff --git a/.github/workflows/auto-comment-pr-merge.yml b/.github/workflows/auto-comment-pr-merge.yml new file mode 100644 index 0000000..8100123 --- /dev/null +++ b/.github/workflows/auto-comment-pr-merge.yml @@ -0,0 +1,38 @@ +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 <