We want to implement developer private branches in a STASH based environment . The branch should follow the naming convention dev/<dev_User_Id>/<Bugfix_ID> and only the developer with id "dev_User_Id" should be able to write changes / commit to this dev private branch , Is there a way to implement such private branches and naming convention in stash ?
It's doable. The Development brach is READ only. All new code must branch out from that branch. Anything that wants to go to the that branch must be done using Pull Requests. And you can also setup that only a few people can merge into the Dev branch.
You can even create a pre-commit hook to regex the branch name that is coming in from the Pull Request.
This sounds like overkill. You can manually configure branch permissions/restrictions for each known user. Or let users clone into their personal area. But can you explain why you want or need this unusual permission/branch scenario?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.