From 7adc491a77756d3eb468e40a8f7b5cb0365a2036 Mon Sep 17 00:00:00 2001 From: Anshika Yadav <14anshika7yadav@gmail.com> Date: Tue, 28 May 2024 00:30:58 +0530 Subject: [PATCH] Issue in autocommenting on merged pr #255 --- .github/workflows/autocomment-pr-merge.yml | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/autocomment-pr-merge.yml b/.github/workflows/autocomment-pr-merge.yml index 6a8547d..a619d4f 100644 --- a/.github/workflows/autocomment-pr-merge.yml +++ b/.github/workflows/autocomment-pr-merge.yml @@ -1,7 +1,7 @@ name: Auto Comment on PR Merge on: - pull_request: + pull_request_target: types: [closed] permissions: @@ -10,27 +10,28 @@ permissions: jobs: comment: - runs-on: ubuntu-latest - permissions: - pull-requests: write if: github.event.pull_request.merged == true + runs-on: ubuntu-latest steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Add Comment to Issue - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | + - name: Add Comment to Merged PR + run: | COMMENT=$(cat <