okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
f57c0adcb
main
1name : Intake 2 3# New issues and pull requests that do not follow CONTRIBUTING.md get the needs-format label and one friendly note. 4# Items that keep the label for 5 days are closed by the daily sweep, with a note on how to /reopen. 5# 6# pull_request_target is used instead of pull_request on purpose: a pull request from a fork gets a read-only 7# GITHUB_TOKEN under pull_request, so it could not be labelled or commented on. It is safe here because this 8# workflow never checks out or runs the pull request's code. It checks out the default branch only (the bot 9# scripts) and reads the title and description from the event payload and the REST API. 10 11on : 12issues : 13types : [ opened , edited ] 14pull_request_target : 15types : [ opened , edited ] 16schedule : 17- cron : '17 4 * * *' 18workflow_dispatch : 19 20permissions : 21contents : read 22issues : write 23pull-requests : write 24 25concurrency : 26group : intake-${{ github.event.issue.number || github.event.pull_request.number || 'sweep' }} 27cancel-in-progress : false 28 29jobs : 30check : 31if : github.event_name == 'issues' || github.event_name == 'pull_request_target' 32runs-on : ubuntu-latest 33steps : 34- uses : actions/checkout@v4 35with : 36ref : ${{ github.event.repository.default_branch }} 37sparse-checkout : .github/scripts 38persist-credentials : false 39- uses : actions/github-script@v7 40with : 41script : | 42const bot = require('./.github/scripts/reset-bot.js'); 43await bot.intake({ github, context, core }); 44 45sweep : 46if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' 47runs-on : ubuntu-latest 48steps : 49- uses : actions/checkout@v4 50with : 51ref : ${{ github.event.repository.default_branch }} 52sparse-checkout : .github/scripts 53persist-credentials : false 54- uses : actions/github-script@v7 55with : 56script : | 57 const bot = require('./.github/scripts/reset-bot.js'); 58 await bot.sweep({ github, context, core });