Skip to content

GH-55884: [CI] Auto close untriaged PRs after 7 days - #55885

Open
rok wants to merge 7 commits into
apache:mainfrom
rok:reduce_agent_spam_pr
Open

rok wants to merge 7 commits into
apache:mainfrom
rok:reduce_agent_spam_pr

Conversation

@rok

@rok rok commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Reduce reviewer burden from unsolicited and low-effort PRs by letting untriaged PRs from first-time contributors expire automatically unless a maintainer opts in.

What changes are included in this PR?

Add .github/workflows/triage.yml (restricted to apache/arrow) to:

  • Auto-close PRs that remain in Status: needs triage for more than 7 days using actions/stale@v11, removing Status: needs triage, adding Status: closed-untriaged, and posting a comment directing contributors to discuss on the linked issue or mailing list.
  • Label newly opened PRs from first-time contributors as Status: needs triage.

Are these changes tested?

Validated workflow YAML and embedded JavaScript syntax.

Are there any user-facing changes?

No public API changes. First-time PRs are labeled Status: needs triage and auto-closed after 7 days if not triaged.

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@rok

rok commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@Reranko05 this has some overlap with #55352. If you'd like to include this into #55352 I'd be ok with it :).

@Reranko05

Copy link
Copy Markdown
Collaborator

@rok Feel free to continue with this PR! It'll be some time before I can resume work on #55352 (after 8th dec, since my exams are still going on 😅).

@rok

rok commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Ah! Good luck with your examps @Reranko05! See you on the other side.

@Reranko05

Copy link
Copy Markdown
Collaborator

Thanks @rok :)

@rok rok changed the title GH-55884: [CI] Auto close untriaged PRs after 3 days GH-55884: [CI] Auto close untriaged PRs after 5 days Dec 2, 2026
@rok
rok marked this pull request as ready for review December 2, 2026 10:46
Copilot AI adaptive review requested due to automatic review settings December 2, 2026 10:46

This comment was marked as low quality.

Comment thread .github/workflows/triage.yml Outdated
if (done) break;
}

// 2. Close PRs still in 'Status: Needs triage' after CLOSE_AFTER_DAYS days

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.

minor nit, if we close before adding the label we don't have to iterate over the new ones which should just have the label set :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed!

Comment thread .github/workflows/triage.yml Outdated
body: [
`Thank you for your contribution! This pull request has been automatically closed because it remained in \`${LABEL}\` for more than ${CLOSE_AFTER_DAYS} days without being picked up for review.`,
'',
'This is due to limited maintainer triage and review capacity and is not necessarily a rejection of your change. We encourage you to discuss the motivation and approach with Arrow maintainers on the linked GitHub issue (or open a new issue if one does not exist yet). Once a maintainer picks it up, this PR can be reopened—feel free to leave a comment here if you believe it was closed in error.',

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 am wondering whether this will have the unintended effect of starting to be pinged by users (or bots) so we "review" their "obviously great and required" change

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The language now suggests going to the issue or ML.

Copilot AI adaptive review requested due to automatic review settings December 2, 2026 12:17

This comment was marked as low quality.

@rok
rok requested a review from raulcd December 2, 2026 12:29
@rok

rok commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

@kou what is your opinion on this?

@kou kou 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'll reply to https://lists.apache.org/thread.html/94ypp500kqkqmn5dv85mptdxkfy20xx8 later but 5 days may be short... I think that at least 7 days are needed...)

contents: read

jobs:
triage:

@kou kou Dec 3, 2026 •

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.

Could you add if: github.repository == 'apache/arrow’ to avoid running this on fork repositories?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh yes, good point!

Comment thread .github/workflows/triage.yml Outdated
return ts;
};

// 1. Close PRs still in 'Status: Needs triage' after CLOSE_AFTER_DAYS days

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.

Can we reuse actions/stale instead of implementing this by ourselves?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I suppose we can. See current proposal.

@rok rok changed the title GH-55884: [CI] Auto close untriaged PRs after 5 days GH-55884: [CI] Auto close untriaged PRs after 7 days Dec 3, 2026
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.

[CI] Auto close untriaged PRs after 7 days

5 participants