fix(workflow): dont reopen if the commenter closed the issue

This commit is contained in:
Sam Chau 2026-01-24 05:52:41 +10:30
parent 131dc561fc
commit bec49a3bb4

View File

@ -9,7 +9,9 @@ on:
jobs: jobs:
reopen: reopen:
if: github.event.issue.state == 'closed' if: >
github.event.issue.state == 'closed' &&
github.event.comment.user.login != github.event.issue.closed_by.login
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v7 - uses: actions/github-script@v7