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

Git: Support to configure branches which should be protected from direct commits #148783

Closed
joaomoreno opened this issue May 5, 2022 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality git GIT issues on-release-notes Issue/pull request mentioned in release notes on-testplan
Milestone

Comments

@joaomoreno
Copy link
Member

Given we now want to avoid committing to main directly, we could have a workspace setting which would have the Git extension warn when the user is about to commit directly on the main branch.

Generalizing it, we could have a list of branches which would cause that alert. That alert could guide the user to create a new branch, possibly leveraging #148781

@joaomoreno joaomoreno added feature-request Request for new features or functionality git GIT issues labels May 5, 2022
@joaomoreno joaomoreno added this to the May 2022 milestone May 5, 2022
@lszomoru
Copy link
Member

Branch protection has been implemented.

@joaomoreno joaomoreno added the on-release-notes Issue/pull request mentioned in release notes label Jun 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality git GIT issues on-release-notes Issue/pull request mentioned in release notes on-testplan
Projects
None yet
Development

No branches or pull requests

2 participants