mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2026-01-27 21:00:54 +01:00
23 lines
612 B
YAML
23 lines
612 B
YAML
# 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'
|
|
}) |