Azure pipeline with main branch is not updated due to branch policies are enabled is there any other way?

vikram mariyala 1 Reputation point
2021-12-07T07:25:37.59+00:00

we are using azure classic pipeline with main branch. we are updating package.json file with main branch and we created git commit task but showing the error : main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch - Here what i observed is, The main branch have the policies so its saying you must use PR to update this branch. and we tried PR task to add the pipeline but no luck bcz source and destination branch are same. its showing there is no commit. Please help me any other ways to update the main branch - thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,798 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,686 Reputation points
    2021-12-07T07:44:52.857+00:00

    Hi Vikram,

    Azure DevOps related questions are not supported on this forum. It's better to reach out to experts in a dedicated forum over here:

    https://developercommunity.visualstudio.com/spaces/21/index.html


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    0 comments No comments