From d5cd15c3bbc12d659e3a5d6024217e82cd58974c Mon Sep 17 00:00:00 2001 From: smog-root Date: Mon, 21 Oct 2024 15:03:09 +0530 Subject: [PATCH] Create pr_merge.yml --- .github/workflows/pr_merge.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pr_merge.yml diff --git a/.github/workflows/pr_merge.yml b/.github/workflows/pr_merge.yml new file mode 100644 index 0000000..911c566 --- /dev/null +++ b/.github/workflows/pr_merge.yml @@ -0,0 +1,38 @@ +name: Auto Comment on PR Merge + +# Created by @smog-root + +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 <