Skip to content

Only allow "Squash and Merge" PR merge strategy #216

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

Closed
andrii-i opened this issue Apr 28, 2025 · 2 comments
Closed

Only allow "Squash and Merge" PR merge strategy #216

andrii-i opened this issue Apr 28, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@andrii-i
Copy link
Collaborator

andrii-i commented Apr 28, 2025

Problem

While based on the repo history "Squash and Merge" is a preferred PR merge strategy, all PR merge strategies are currently allowed resulting in need to explicitly choose "Squash and Merge", "Merge commit" strategy being the default one proposed in UI.

Image

Proposed Solution

Only allow "Squash and Merge" PR merge strategy. This can be done in "Settings > General > Pull Requests". This will result in "Squash and Merge" being only available and default merge strategy which will ensure clean commit history and improve merge / PR user experience.

Image

If everyone are OK with this, I can enable this myself.

@andrii-i andrii-i added the enhancement New feature or request label Apr 28, 2025
@andrii-i andrii-i self-assigned this Apr 28, 2025
@brichet
Copy link
Collaborator

brichet commented Apr 29, 2025

Thanks @andrii-i , it looks good to me 👍.

@andrii-i
Copy link
Collaborator Author

Done, only "Squash and merge" is now allowed 🎉

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants