ci: stale bot via actions, exempt typed issues#8208
Merged
Conversation
9c558ff to
0f228f1
Compare
Probot stale does not understand GitHub issue types. Replace the legacy `.github/stale.yml` with an `actions/github-script` workflow that exempts issues whose type is `Bug` or `Feature` and keeps the prior 60/7 day window plus exempt labels (RFC, Hacktoberfest, EU-FOSSA Hackathon).
0f228f1 to
db9b3be
Compare
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.
Summary
.github/stale.yml) with a customactions/github-scriptworkflow.BugorFeature(the new replacement for thebug/enhancementlabels).RFC,Hacktoberfest,⭐ EU-FOSSA Hackathon.Context
Probot Stale only understands labels, not issue types. After migrating every open issue from the
bug/enhancementlabels to the corresponding issue types, those labels no longer exist on the repo, so the old Probot config would lose its exemption semantics. The new workflow queriesissueTypedirectly via GraphQL.Test plan
workflow_dispatch) and inspect the summary line (scanned=… staled=… closed=… unstaled=… exempt=…) in the job log.Bugis not marked stale.stalelabel and the canned comment.stalelabel removed on the next run.