chore: add support for stale PR workflow - #901
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an automated GitHub Actions workflow to manage stale pull requests, helping keep the PR queue maintained by labeling inactive PRs and closing them after an additional grace period.
Changes:
- Introduces a scheduled + manual-dispatch workflow to mark PRs stale after 30 days of inactivity and close after 7 more days.
- Configures stale/close messaging and a
stalelabel viaactions/stale.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (1)
.github/workflows/stale-prs.yml:30
actions/stalelabels and comments on pull requests via the Issues API, sopull-requests: writealone is insufficient. With the current permissions, the workflow will likely fail to apply thestalelabel and/or post the stale/close comments. Addissues: writeto the workflow token permissions.
permissions:
pull-requests: write
manuzhang
left a comment
There was a problem hiding this comment.
I think it would be better to reuse what's already working from the iceberg-java repo https://github.com/apache/iceberg/blob/main/.github/workflows/stale.yml.
|
@manuzhang Please take a look again. |
| # Borrowed the file from Apache Iceberg-Java: | ||
| # https://github.com/apache/iceberg/blob/main/.github/workflows/stale.yml | ||
|
|
||
| name: "Close Stale Issues and PRs" |
| # Don't touch issues. | ||
| days-before-issue-stale: -1 | ||
| days-before-issue-close: -1 |
No description provided.