From d750ca84baae9c0ab8412e275aac948cbc4919e9 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Fri, 23 Jan 2026 20:51:23 +1030 Subject: [PATCH] create(workflow): Add GitHub Action to reopen issues on comment --- .github/workflows/reopen-comment.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/reopen-comment.yaml diff --git a/.github/workflows/reopen-comment.yaml b/.github/workflows/reopen-comment.yaml new file mode 100644 index 0000000..f9d0996 --- /dev/null +++ b/.github/workflows/reopen-comment.yaml @@ -0,0 +1,20 @@ +name: Reopen on comment + +on: + issue_comment: + types: [created] + +jobs: + reopen: + if: github.event.issue.state == 'closed' + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + script: | + await github.rest.issues.update({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + state: 'open' + }) \ No newline at end of file