Squash & Approve - #828
Squash & Approve#828
Conversation
7fbdf0b to
ab07984
Compare
ab07984 to
d1b84ce
Compare
|
Thanks! I'll try to fix the remaining errors in tests and get it cleaned up today or tommorow. |
There was a problem hiding this comment.
Thanks! Left some comments.
There is one race condition that we'll need to handle in handle_push_to_pull_request. If we push the squashed commit, GitHub will send us a webhook about the push, which will unapprove the PR in handle_push_to_pull_request. Of course that is not ideal if we just approved it after the squash :)
I will push some unrelated refactoring towards that.
33f8e57 to
dbbf7f9
Compare
This comment has been minimized.
This comment has been minimized.
2edd30e to
cbf2076
Compare
This comment has been minimized.
This comment has been minimized.
9afb35e to
c2a1c1f
Compare
This comment has been minimized.
This comment has been minimized.
c2a1c1f to
6a57d73
Compare
There was a problem hiding this comment.
Thanks, left some comments. Let's wait for #859 to merge and then do another rebase (sorry 😅).
This comment has been minimized.
This comment has been minimized.
1bee16c to
61bc261
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
3200f7b to
68001a4
Compare
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> # Conflicts: # src/bors/handlers/review.rs # Conflicts: # src/bors/handlers/review.rs
e171f24 to
6f4d388
Compare
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 theshain anOption<sha>Mentored by: @Kobzol