Skip to content

Commit

Permalink
Don't Run 'Close Issue on /close' Workflow if the comment was posted …
Browse files Browse the repository at this point in the history
…on a PR
  • Loading branch information
og-mrk committed Jul 21, 2024
1 parent e82870d commit 994a94b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/issue-slash-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
closeIssueOnClose:
# Quit if the comment was created/edited on a PR
if: ${{ !github.event.issue.pull_request }}
runs-on: ubuntu-latest
permissions:
issues: write
Expand Down Expand Up @@ -40,4 +42,4 @@ jobs:
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: |
echo Closing the issue...
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }}
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }}

0 comments on commit 994a94b

Please sign in to comment.