Skip to content

Exclude drafts from auto-backport nomination - #2170

Merged
Kobzol merged 1 commit into
rust-lang:masterfrom
apiraino:exclude-drafts-from-auto-backport-nominate
Oct 31, 2025
Merged

Kobzol merged 1 commit into
rust-lang:masterfrom
apiraino:exclude-drafts-from-auto-backport-nominate

Conversation

@apiraino

@apiraino apiraino commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

We have a mechanism (see 2556583) that auto-nominates pull requests for a backport if they fix a P-high/P-critical regression.

@jieyouxu suggested in this Zulip comment to exclude pull requests drafts from this mechanism (which makes sense), so this patch implements this suggestion.

r? @jieyouxu

thanks for a review :)

@jieyouxu jieyouxu 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.

Thanks, this makes sense, though I'm not super familiar with triagebot's codebase so rolling a triagebot reviewer :3

View changes since this review

@jieyouxu

jieyouxu commented Sep 2, 2025

Copy link
Copy Markdown
Member

r? triagebot

@rustbot rustbot assigned Mark-Simulacrum and unassigned jieyouxu Sep 2, 2025
Comment thread src/handlers/backport.rs Resolved
@apiraino
apiraino force-pushed the exclude-drafts-from-auto-backport-nominate branch from 31cc5f1 to 68de8c8 Compare September 2, 2025 10:56

@Kobzol Kobzol 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'm not sure what should happen when the PR is undrafted - should this handler run to check for backports? If yes, then we might want to add IssuesAction::ReadyForReview, because I don't think that Edited runs when the PR is converted away from a draft.

View changes since this review

@apiraino
apiraino force-pushed the exclude-drafts-from-auto-backport-nominate branch from 68de8c8 to 2df24a0 Compare October 31, 2025 14:18
@apiraino
apiraino force-pushed the exclude-drafts-from-auto-backport-nominate branch from 2df24a0 to d4cd168 Compare October 31, 2025 15:39
@apiraino

Copy link
Copy Markdown
Contributor Author

@Kobzol back to this old small patch (had forgot about yr comment). I inverted the check boolean logic and added your suggestions. Feel to have a look when you have a sec.

thanks

@apiraino
apiraino requested a review from Kobzol October 31, 2025 15:40

@Kobzol Kobzol 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.

Looks good, thanks!

View changes since this review

@Kobzol
Kobzol added this pull request to the merge queue Oct 31, 2025
Merged via the queue into rust-lang:master with commit 4c55f00 Oct 31, 2025
3 checks passed
@apiraino
apiraino deleted the exclude-drafts-from-auto-backport-nominate branch November 3, 2025 13:53
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