Pull request merge method rule public preview - feedback #146284
Replies: 12 comments 38 replies
-
@patrick-knight Sorry but can you share a nav path to this feature? I checked all the tabs in repository settings including General and Branches but couldn't find it. |
Beta Was this translation helpful? Give feedback.
-
This is great news 🥳 ! |
Beta Was this translation helpful? Give feedback.
-
Love it! Most of my initial use case was to manage staging versus production environments with Render, Netlify and the likes without having a CD. This should work perfectly. |
Beta Was this translation helpful? Give feedback.
-
That's great news! Thanks for implementing this feature 🎉 This works well for one aspect of our workflow, but we still encounter a failing case. Our workflow consists of the following steps:
Currently, we can only set up rule to allow "Squash" and "Merge" for merging branches into However, there is still an opportunity for developers to merge
|
Beta Was this translation helpful? Give feedback.
-
I would like to see an option to set the default merge method per branch as well, as discussed in this discussion (or more specifically here) there are times where you want to "nudge" contributors towards using a certain merging method without enforcing it. Choosing which merge method is default is one way to do that. |
Beta Was this translation helpful? Give feedback.
-
There's a typo in the changelog:
|
Beta Was this translation helpful? Give feedback.
-
@patrick-knight is it possible to bypass this setting to fall back to the merge methods allowed at the repo level? For example, I would want developers to only |
Beta Was this translation helpful? Give feedback.
-
Bypassing a ruleset with the merge method rule enabled doesn't work, the ruleset is still applied fully to a person included in the bypass list. |
Beta Was this translation helpful? Give feedback.
-
This is perfect for our team - we want to allow squash or merge in our dev branch, with only merge being allowed in staging and main. Now configured and looks great! 🙌 |
Beta Was this translation helpful? Give feedback.
-
I would like the ability to add conditions to the rule. For the use case I'm interested in, I want to enforce a merge method that does not rewrite the history of the branch being merged when it is a (pre)release branch (in the context of a library). This would help avoid mistakes when a project values maintaining provenance between versions published to the registry, the source commits they resulted in, and the versions that follow them. In semantic-release, release channels are aligned with branches and default conventions include support for I would like to leave the merge method flexible for normal feature contributions, but limit the merge method when the source branch being merged into the target branch that the rule is related to is a release branch. Ideally, I would supply a list of branch names to the rule that limits the merge type and would expect that the rule could be defined even if some of the named branches do not currently exist. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Is it possible to configure it in the way so:
I need this, to be able to force merge without squashing between |
Beta Was this translation helpful? Give feedback.
-
You can now enforce what merge method is available on a specific branch with the new pull request merge method rule in public preview.
Choose between Merge, Squash or Rebase and ensure only selected merge methods are supported.
Learn more in the documentation
Video example of enabling the rule
GitHubScreenShot-Arc-04-12-2024-004121.mp4
Known issues
Conflicting merge methods between the repository setting and the rule will cause merges to fail.
Feedback
We want to hear from you! Add your comments, questions, likes and dislikes below. 🔽
Beta Was this translation helpful? Give feedback.
All reactions