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

Keep only Squash and merge button #363

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Keep only Squash and merge button #363

merged 1 commit into from
Apr 3, 2024

Conversation

tisonkun
Copy link
Member

@tisonkun tisonkun commented Apr 3, 2024

In #362 we found intermediate merge commit can cause the commit history hard to read. Thus, I propose to leave only the "Squash and merge" button to make it clear that we always squash the whole PR into one commit on merging.

In #362 we found intermediate merge commit can cause the commit history hard to read. Thus, I propose to leave only the "Squash and merge" button to make it clear that we always squash the whole PR into one commit on merging.
@tisonkun
Copy link
Member Author

tisonkun commented Apr 3, 2024

@sebbASF here is the patch.

If you look at PR #334 that has more than 1 commit, and Squash and Merge is enabled.

Yes. I mean:

the PR is squashed when it is applied to the target repo

This is not always applied but depends on the committers' actions.

image

They can choose any of these three and the default is on personal bias (namely, merge commit the preset, and then default to your last action on a specific repo).

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Agreed.

Copy link
Contributor

@sebbASF sebbASF left a comment

Choose a reason for hiding this comment

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

No objection

@tisonkun
Copy link
Member Author

tisonkun commented Apr 3, 2024

Since @bproffitt actively maintains this repo, I'll wait a bit for his opinion on this.

@jerpelea
Copy link
Contributor

jerpelea commented Apr 3, 2024

I think that "rebase and merge" should be used to avoid the merge commits

Copy link
Contributor

@jerpelea jerpelea left a comment

Choose a reason for hiding this comment

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

"squash and merge" will impact the git statistics since more commits may be squashed in 1 commit

@tisonkun
Copy link
Member Author

tisonkun commented Apr 3, 2024

I think that "rebase and merge" should be used to avoid the merge commits

Literal "Rebase and merge" can still bring the author's merge commit into the main branch, while it does not create a new merge commit on merge.

But I agree that sometimes one PR contains multiple portions of changes and is suitable for rebase and commit, while it can be theoretically separated into multiple PRs.

@tisonkun
Copy link
Member Author

tisonkun commented Apr 3, 2024

"squash and merge" will impact the git statistics since more commits may be squashed in 1 commit

Exactly. However, we don't chase for statistics here, do we? :D

@jbonofre
Copy link
Member

jbonofre commented Apr 3, 2024

"squash and merge" will impact the git statistics since more commits may be squashed in 1 commit

Exactly. However, we don't chase for statistics here, do we? :D

I don't think so.

Copy link
Contributor

@bproffitt bproffitt left a comment

Choose a reason for hiding this comment

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

Yeah, this seems fine to me.

@bproffitt bproffitt merged commit c0e3053 into main Apr 3, 2024
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.

6 participants