This is a project for performing bulk updates in ADO (Azure DevOps) using Python. The tool creates branches where it makes changes for all occurrences of the specified string in the indicated repositories. It then opens pull requests and returns links to the PRs.
- changing one or more strings at once
- ability to change all occurrences of string(s) in the entire organization or specific projects and repositories
- dry run
- authentication via Az CLI - no PAT token needed
To install the required dependencies, run the following command:
pip install -r requirements.txt
Install Az CLI
-
Authenticate with Azure DevOps using Az CLI:
az login
-
Adjust the settings.yaml file - at least change
organization_name
and change or removeprojects_and_repos
-
Run the script:
python ado_bulk_update.py
The settings.yaml
file contains the following properties:
organization_name
: The name of the Azure DevOps organization.projects_and_repos
: A list of projects and repositories to perform the bulk updates on. You can specify specific projects and repositories or leave it empty to perform the updates on the entire organization/project.dry_run
: A boolean value indicating whether to perform a dry run or not. If set totrue
, the script will only simulate the updates without actually making any changes.