mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2026-03-15 09:30:08 -04:00
Merge pull request #137 from Dictionarry-Hub/reopen-on-comment-workflow
Reopen on comment workflow
This commit is contained in:
23
.github/workflows/reopen-comment.yaml
vendored
Normal file
23
.github/workflows/reopen-comment.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Automatically reopens closed issues when someone leaves a new comment.
|
||||||
|
# Useful for Utterances — lets users continue discussions on resolved topics.
|
||||||
|
|
||||||
|
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'
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user