git
git copied to clipboard
Unable to create Release on Azure Devops
As per the Azure Devops Docs regarding Branch Policies
A branch that has required policies configured can't be deleted, and requires pull requests (PRs) for all changes.
I have tried enabling
- Bypass policies for the Build Service
- Also given force push permissions
But I am getting the following response
! [remote rejected] HEAD -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)
shortMessage: 'Command failed with exit code 1: git push --tags https://dev.azure.com/**** HEAD:main',
command: 'git push --tags https://dev.azure.com/**** HEAD:main',
escapedCommand: 'git push --tags "[https://dev.azure.com/****"
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
' ! [remote rejected] HEAD -> main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)\n' +
"error: failed to push some refs to '[https://dev.azure.com/*******"]
failed: true,
timedOut: false,
isCanceled: false,
killed: false,
pluginName: '@semantic-release/git'