mirror of
https://github.com/dmasur/database.git
synced 2026-02-02 20:14:24 +01:00
create(workflow): Add GitHub Action to reopen issues on comment
This commit is contained in:
parent
9db9156172
commit
d750ca84ba
20
.github/workflows/reopen-comment.yaml
vendored
Normal file
20
.github/workflows/reopen-comment.yaml
vendored
Normal file
@ -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'
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user