Auto-close unaddressed rule violations #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto-close unaddressed rule violations | |
| # Daily scan for issues/PRs that still carry `state-needs-updates` after the | |
| # grace period defined in .github/scripts/triage-config.mjs. Logic lives in | |
| # .github/scripts/close-unaddressed.mjs; this file only wires it up. | |
| # | |
| # `workflow_dispatch` supports a `dry-run` input (default: true) so the very | |
| # first manual run reports what would close without acting on it. | |
| on: | |
| schedule: | |
| - cron: '15 3 * * *' # daily, 03:15 UTC | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: "Report what would change without acting" | |
| type: boolean | |
| required: false | |
| default: true | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| close-unaddressed: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| sparse-checkout: .github/scripts | |
| sparse-checkout-cone-mode: false | |
| - uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const { default: closeUnaddressed } = await import(`${process.env.GITHUB_WORKSPACE}/.github/scripts/close-unaddressed.mjs`); | |
| await closeUnaddressed({ github, context, core, dryRun: ${{ inputs.dry-run || false }} }); |