From c4f82c0dfcf0d63cf088b87aeb411944b100aca0 Mon Sep 17 00:00:00 2001 From: Pradnya Gaitonde <116059908+PradnyaGaitonde@users.noreply.github.com> Date: Tue, 11 Jun 2024 23:42:40 +0530 Subject: [PATCH] Update autocomment_issue.yml --- .github/workflow/autocomment_issue.yml | 42 +++++++++----------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflow/autocomment_issue.yml b/.github/workflow/autocomment_issue.yml index b45af24..d79efc3 100644 --- a/.github/workflow/autocomment_issue.yml +++ b/.github/workflow/autocomment_issue.yml @@ -1,35 +1,21 @@ -name: Auto Comment on Issue +name: Auto Comment on PR Merge on: - issues: - types: [opened] - -permissions: - issues: write + pull_request: + types: [closed] jobs: comment: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest - + steps: - - name: Add Comment to Issue - run: | - COMMENT=$(cat <