mirror of
https://github.com/dmasur/database.git
synced 2026-02-02 16:14:23 +01:00
delete(workflow): remove automatic reopening of closed issues on new comments
This commit is contained in:
parent
47d250184a
commit
00900c27ae
25
.github/workflows/reopen-comment.yaml
vendored
25
.github/workflows/reopen-comment.yaml
vendored
@ -1,25 +0,0 @@
|
|||||||
# 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' &&
|
|
||||||
github.event.comment.user.login != github.event.issue.closed_by.login
|
|
||||||
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