Add GitHub Actions workflow to auto-close stale maintainer-scrap issues#1500
Merged
dyoshikawa merged 2 commits intomainfrom Apr 17, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a scheduled GitHub Actions workflow to reduce maintainer triage by automatically closing stale issues labeled maintainer-scrap, with an option to trigger the job manually.
Changes:
- Introduces a new scheduled + manual workflow to scan open
maintainer-scrapissues. - Filters out pull requests and closes issues whose
updated_atis ≥ 30 days old. - Uses minimal repository permissions (
contents: read,issues: write) and logs each action.
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Close stale maintainer-scrap issues | ||
| uses: actions/github-script@v8 |
There was a problem hiding this comment.
actions/github-script is referenced by a mutable tag (@v8). In this repo, workflows pin actions to an exact commit SHA for supply-chain security and reproducibility (e.g., actions/checkout@<sha> in other workflows). Please pin actions/github-script to a full-length commit SHA (with an inline comment noting the corresponding version).
Suggested change
| uses: actions/github-script@v8 | |
| uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v8 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
maintainer-scrapthat have not been updated for a month.Description
.github/workflows/auto-close-maintainer-scrap-issues.ymlthat runs daily (UTC 00:00) and supportsworkflow_dispatchmanual runs.actions/github-script@v8to list open issues with themaintainer-scraplabel, skip pull requests, and close issues whoseupdated_atis >= 30 days old while logging actions.contents: read,issues: write).Testing
pnpm cicheck, which includes formatting, linting, type checks, unit tests, and content checks, and it completed successfully.vitestand reported all tests passing (4901tests passed).cspellandsecretlint) completed successfully as part ofpnpm cicheck.Codex Task