Skip to content

Conversation

@fhennig
Copy link
Contributor

@fhennig fhennig commented Dec 21, 2021

The description of the PR becomes the commit message of the merge commit after it is merged (see here for an example).

This PR uses the cut_body_after property to cut off our review checklist. It also adds a short note to use bors for the merge.

It also configures bors to do a squash merge. (Doesn't work)

@fhennig fhennig marked this pull request as ready for review December 21, 2021 15:09
@fhennig fhennig marked this pull request as draft December 21, 2021 15:12
pr_status = [ 'license/cla' ]
timeout_sec = 7200
timeout_sec = 7200
cut_body_after = "<!-- Commit message above. Everything below is not added to the message. Do not change this line! -->"
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

'Run cargo deny (bans licenses sources)'
]
delete_merged_branches = true
use_squash_merge = true
Copy link
Contributor

Choose a reason for hiding this comment

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

We had issues where squash merges didn't close the PR properly.

I'm also curious about what use-case you're trying to solve with squashing? Git itself can show the history as if every merge was a squash with git log --first-parent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was mostly to emulate how we did it before I thought maybe it was on accident that you missed that. I also kind of liked that all my "WIP" commits don't show up in the final thing but I'm happy either way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've removed it for now

@fhennig fhennig requested a review from lfrancke December 21, 2021 16:22
@fhennig fhennig marked this pull request as ready for review December 21, 2021 16:22
@lfrancke lfrancke mentioned this pull request Dec 23, 2021
@maltesander
Copy link
Member

Included here #46

@lfrancke lfrancke deleted the bors-commit-message branch April 27, 2023 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants