Skip to content

Squash & Approve - #828

Open
medzernik wants to merge 2 commits into
rust-lang:mainfrom
medzernik:691/impl-bors-squash-r-plus
Open

Squash & Approve#828
medzernik wants to merge 2 commits into
rust-lang:mainfrom
medzernik:691/impl-bors-squash-r-plus

Conversation

@medzernik

@medzernik medzernik commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Added a Squash and Approve function. This should fix #691.

Please let me know anything I can do to improve the code if needed.

I would add that in
https://github.com/medzernik/bors/blob/ab07984372498f757ab06438e926a6a6c0424c2b/src/bors/handlers/squash.rs#L25-L27

I wanted to use some more differentiated error states, but with anyhow and the general practice of returning Ok(X) even if an error technically occurs, I just wrapped the sha in an Option<sha>

Mentored by: @Kobzol

Added a new command that can squash and, if successful, approve a the latest resulting commit
Signed-off-by: David Manca <1900179+medzernik@users.noreply.github.com>
Signed-off-by: David Manca <1900179+medzernik@users.noreply.github.com>
@medzernik
medzernik force-pushed the 691/impl-bors-squash-r-plus branch from 7fbdf0b to ab07984 Compare August 23, 2026 09:43
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.

Implement @bors r+ squash

1 participant