You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code review is difficult when the PR of a contributor comes from the main branch of his fork. Because pulling, merging, rebasing is not straightforward.
We want to enforce PR from a custom branch, not main branch.
Could we find a way to prevent this on GitHub ? Maybe be with a git hook or a rule of some kind ?
We could maybe also add some mention to this in the How to contribute section somewhere ?
The text was updated successfully, but these errors were encountered:
#6404
Used a Git hook`(pre-push)` to prevent pull requests from being created
from the main branch.
pre-push hook ref: https://git-scm.com/docs/git-push
Scope & Context
Code review is difficult when the PR of a contributor comes from the main branch of his fork. Because pulling, merging, rebasing is not straightforward.
We want to enforce PR from a custom branch, not main branch.
Could we find a way to prevent this on GitHub ? Maybe be with a git hook or a rule of some kind ?
We could maybe also add some mention to this in the How to contribute section somewhere ?
The text was updated successfully, but these errors were encountered: