Skip to content

ci: stale bot via actions, exempt typed issues#8208

Merged
soyuka merged 1 commit into
api-platform:mainfrom
soyuka:ci/stale-bot-issue-types
May 29, 2026
Merged

ci: stale bot via actions, exempt typed issues#8208
soyuka merged 1 commit into
api-platform:mainfrom
soyuka:ci/stale-bot-issue-types

Conversation

@soyuka

@soyuka soyuka commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace the deprecated Probot Stale config (.github/stale.yml) with a custom actions/github-script workflow.
  • Exempt issues whose GitHub Issue Type is Bug or Feature (the new replacement for the bug / enhancement labels).
  • Preserve the previous behaviour: 60 days until stale, 7 days until close, exempt labels RFC, Hacktoberfest, ⭐ EU-FOSSA Hackathon.

Context

Probot Stale only understands labels, not issue types. After migrating every open issue from the bug / enhancement labels 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 queries issueType directly via GraphQL.

Test plan

  • Manually trigger the workflow via the Run workflow button (workflow_dispatch) and inspect the summary line (scanned=… staled=… closed=… unstaled=… exempt=…) in the job log.
  • Verify an open issue typed Bug is not marked stale.
  • Verify an untyped open issue last updated > 60 days ago receives the stale label and the canned comment.
  • Verify a stale issue with new non-bot activity has its stale label removed on the next run.

@soyuka soyuka force-pushed the ci/stale-bot-issue-types branch from 9c558ff to 0f228f1 Compare May 29, 2026 13:04
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).
@soyuka soyuka force-pushed the ci/stale-bot-issue-types branch from 0f228f1 to db9b3be Compare May 29, 2026 13:14
@soyuka soyuka merged commit c2b990e into api-platform:main May 29, 2026
2 of 112 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant