From 7acb213a7796e478ba5715cad8059bcbb4993a3e Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Thu, 25 Jul 2024 23:12:06 +0300 Subject: [PATCH] Skip 'Close Issue on /close' Workflow if the comment was posted on a PR (#2426) --- .github/workflows/issue-slash-commands.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/issue-slash-commands.yaml b/.github/workflows/issue-slash-commands.yaml index 080fa9db..a83b432c 100644 --- a/.github/workflows/issue-slash-commands.yaml +++ b/.github/workflows/issue-slash-commands.yaml @@ -6,6 +6,8 @@ on: jobs: closeIssueOnClose: + # Skip this job if the comment was created/edited on a PR + if: ${{ !github.event.issue.pull_request }} runs-on: ubuntu-latest permissions: issues: write