okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
f57c0adcb
main
1name : Reopen 2 3# An author comments /reopen on their closed issue or pull request. The check runs and the item is reopened, 4# or the bot replies with what is still missing. GitHub does not let authors reopen items a maintainer closed, 5# so this workflow does it for them. 6# 7# issue_comment always runs the workflow file from the default branch with a write-capable token, which is what 8# we need for fork authors too. It never checks out or executes the pull request's code: it reads the live 9# title and description through the REST API. Only the author of the item or a maintainer can trigger it. 10 11on : 12issue_comment : 13types : [ created ] 14 15permissions : 16contents : read 17issues : write 18pull-requests : write 19 20concurrency : 21group : reopen-${{ github.event.issue.number }} 22cancel-in-progress : false 23 24jobs : 25reopen : 26if : startsWith(github.event.comment.body, '/reopen') && github.event.comment.user.type != 'Bot' 27runs-on : ubuntu-latest 28steps : 29- uses : actions/checkout@v4 30with : 31ref : ${{ github.event.repository.default_branch }} 32sparse-checkout : .github/scripts 33persist-credentials : false 34- uses : actions/github-script@v7 35with : 36script : | 37 const bot = require('./.github/scripts/reset-bot.js'); 38 await bot.reopen({ github, context, core });