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

Process change suggestion: squash-and-merge PRs #725

Open
chalin opened this issue Oct 15, 2021 · 5 comments
Open

Process change suggestion: squash-and-merge PRs #725

chalin opened this issue Oct 15, 2021 · 5 comments

Comments

@chalin
Copy link
Collaborator

chalin commented Oct 15, 2021

Followup to #540 (comment).

@LisaFC - I'd like to suggest a process change: squash-and-merge PRs from now on rather than doing a default merge. This will keep the repo history clean, and make it more obvious which changes any given PR is introducing. It will also be helpful to PR authors as it usually forces PR authors, who might be working from a very old version of the repo, to rebase and resolve any merge conflicts (using their expertise of the code changes they're introducing) before their PR can be accepted for merging.

Thoughts?

/cc @nate-double-u @celestehorgan

@chalin
Copy link
Collaborator Author

chalin commented Oct 15, 2021

@emckean
Copy link
Collaborator

emckean commented Oct 29, 2021

I like the idea of moving to squash-and-merge for PRs. It looks like if we remove the "allow merge commits" setting then this will become the default (but admins can still merge-commit): (see dotnet/runtime#260). @chalin is that your understanding of the settings work?

@chalin
Copy link
Collaborator Author

chalin commented Oct 30, 2021

@emckean - right: ensuring that "allow merge commits" is unchecked and that "allow squash merging" is checked seems to be the way to go.

@chalin
Copy link
Collaborator Author

chalin commented Nov 4, 2021

@emckean or @LisaFC: have you changed the settings? If so, note that the choice of merge is a "sticky", so on your next PR merge you'll need to manually select to squash the PR. For subsequent PRs, the setting will be squash.

@chalin
Copy link
Collaborator Author

chalin commented Nov 16, 2021

@LisaFC: any issue in implementing this?

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

No branches or pull requests

2 participants