Hello,
I would like to publish into the main branch but I get this error.
Any suggestions please?

Hello,
I would like to publish into the main branch but I get this error.
Any suggestions please?

Just curios to check - what is Collaboration branch and Publish branch set in Manage tab > Git configuration?
Hello,
I am using DevOps.
Where exactly can I get the information you are asking for?
Please note that my pipelines are in synapse workspace and not in azure data factory (In-case it makes any difference for DevOps)
Thank you
Hello again @arkiboys . Most likely, someone set up restrictions on your DevOps repo, so that the main branch can only be altered by merge / pull requests, rather than direct commits. Talk to the person who manages your DevOps repository.
This is not an uncommon practice. Often, devopers will make a feature branch, and make a bunch of changes there, trusting that nothing will change in the main branch while they are working. If something does change in the main branch, then when they try to move their new features into main, there will be a merge conflict, as it isn't certain which change takes precedence.
Hello,
We do not change anything in the main branch.
We only make change sin feature branch and then create a PR to merge into the main branch...
Where in DevOps, (As you suggested), "the main branch can only be altered by merge / pull requests" can this setting be changed so that I can find it?
Thank you
Hi @arkiboys ,
Error messages trying to convey that you don't have access to save edits directly on Main branch.
Could you please complete your PR and then freshly open browser and workspace by connecting with main branch and then try to publish? Make sure there should not be any direct edits on main branch while publishing. Thank you.
Hi @arkiboys ,
Could you please share updates on above ask? If your issue resolved? If yes, Consider marking above as accepted answer. Please let us know if any further queries. Thank you.
8 people are following this question.