Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: action for labeling and closing stale PRs #17041

Closed
wants to merge 5 commits into from

Conversation

bryangingechen
Copy link
Contributor

@bryangingechen bryangingechen commented Sep 23, 2024

Per discussion in the maintainer channel.

Uses a PR branch actions/stale#1145 of actions/stale since it has a feature that will allow us to only consider PRs not sitting on the #queue.

There's still placeholder text for the comments, but this is intended to be merged with the debug-only flag until we have the kinks sorted out, so we could fill in that text in a later PR.


Open in Gitpod

@bryangingechen bryangingechen added the CI Modifies the continuous integration / deployment setup label Sep 23, 2024
Copy link

github-actions bot commented Sep 23, 2024

PR summary ad1c63d501

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

@bryangingechen bryangingechen marked this pull request as ready for review September 24, 2024 13:25
@@ -0,0 +1,25 @@
name: 'Close stale issues and PRs'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
name: 'Close stale issues and PRs'
name: 'Flag and then close stale PRs'

is more appropriate?

# "is:open is:pr -is:draft base:master sort:updated-asc status:success -label:blocked-by-other-PR -label:merge-conflict -label:awaiting-CI -label:WIP -label:awaiting-author -label:delegated -label:auto-merge-after-CI -label:ready-to-merge -label:please-adopt -label:help-wanted -label:awaiting-zulip"
# We want PRs _not_ on the queue, so we keep "is:pr -is:draft base:master" (is:open is added by the action by default) as a prefix for all queries and then negate the rest of the params in separate queries to simulate boolean OR (see https://github.com/actions/stale/pull/1145)
# except for label:auto-merge-after-CI and label:ready-to-merge which presumably will be noticed before they go stale
only-matching-filter: '[ "is:pr -is:draft base:master -status:success", "is:pr -is:draft base:master label:blocked-by-other-PR", "is:pr -is:draft base:master label:merge-conflict", "is:pr -is:draft base:master label:awaiting-CI", "is:pr -is:draft base:master label:WIP", "is:pr -is:draft base:master label:awaiting-author", "is:pr -is:draft base:master label:delegated", "is:pr -is:draft base:master label:please-adopt", "is:pr -is:draft base:master label:help-wanted", "is:pr -is:draft base:master label:awaiting-zulip" ]'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Arguably we should be more aggressive about delegated and ready-to-merge but that can come later.

@mattrobball
Copy link
Collaborator

Thanks! Let's try this out.

bors delegate+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Oct 16, 2024

✌️ bryangingechen can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@bryangingechen
Copy link
Contributor Author

bors r+

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Oct 16, 2024
mathlib-bors bot pushed a commit that referenced this pull request Oct 16, 2024
Per discussion in the maintainer channel.

Uses a PR branch actions/stale#1145 of [actions/stale](https://github.com/actions/stale/) since it has a feature that will allow us to only consider PRs not sitting on the [#queue](https://bit.ly/3Ymuh0U). 

There's still placeholder text for the comments, but this is intended to be merged with the `debug-only` flag until we have the kinks sorted out, so we could fill in that text in a later PR.
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Oct 16, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: action for labeling and closing stale PRs [Merged by Bors] - feat: action for labeling and closing stale PRs Oct 16, 2024
@mathlib-bors mathlib-bors bot closed this Oct 16, 2024
@mathlib-bors mathlib-bors bot deleted the bgc-stale-action branch October 16, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Modifies the continuous integration / deployment setup delegated ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants