Refresh Pipelines:
Navigate to Azure DevOps Pipelines.
- In the YAML file or pipeline settings, open the impacted pipeline, select Edit, and change the branch reference in the Trigger or Resources section.
- Verify and save the modifications.
Revise Pull Requests:
- Edit the pull request and choose the renamed branch to manually change the target branch if pull requests point to the old branch.
- If required, close and reopen pull requests.
Change the Branch Policies:
- Locate the renamed branch by going to Repos > Branches, then make sure that branch policies (such as necessary reviewers and builds) are implemented appropriately.
Update the references and CI/CD:
- Verify that the new branch name is accurately reflected in references in related tools (such as webhooks or GitHub Actions).
Alert the Team:
To bring local repositories and workflows into alignment, share the most recent branch data with your team.