Skip to content

chore: add support for stale PR workflow - #901

Open
HuaHuaY wants to merge 5 commits into
apache:mainfrom
HuaHuaY:stale_prs
Open

chore: add support for stale PR workflow#901
HuaHuaY wants to merge 5 commits into
apache:mainfrom
HuaHuaY:stale_prs

Conversation

@HuaHuaY

@HuaHuaY HuaHuaY commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 26, 2026 07:55
Comment thread .github/workflows/stale-prs.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 stale label via actions/stale.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/stale-prs.yml
Comment thread .github/workflows/stale-prs.yml Outdated
Copilot AI review requested due to automatic review settings August 26, 2026 08:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/stale labels and comments on pull requests via the Issues API, so pull-requests: write alone is insufficient. With the current permissions, the workflow will likely fail to apply the stale label and/or post the stale/close comments. Add issues: write to the workflow token permissions.
permissions:
  pull-requests: write

Comment thread .github/workflows/stale-prs.yml Outdated
Copilot AI review requested due to automatic review settings August 26, 2026 08:59
@wgtmac

wgtmac commented Aug 26, 2026

Copy link
Copy Markdown
Member

cc @zhjwpku @manuzhang

Comment thread .github/workflows/stale-prs.yml

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/stale-prs.yml
Copilot AI review requested due to automatic review settings August 26, 2026 09:15
Comment thread .github/workflows/stale-prs.yml Outdated

@manuzhang manuzhang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/stale-prs.yml
Comment thread .github/workflows/stale-prs.yml Outdated
Copilot AI review requested due to automatic review settings August 26, 2026 09:45
@HuaHuaY

HuaHuaY commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@manuzhang Please take a look again.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread .github/workflows/stale-prs.yml
# Borrowed the file from Apache Iceberg-Java:
# https://github.com/apache/iceberg/blob/main/.github/workflows/stale.yml

name: "Close Stale Issues and PRs"
Comment on lines +38 to +40
# Don't touch issues.
days-before-issue-stale: -1
days-before-issue-close: -1
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.

4 participants