Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.49 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.49 KB

ado_bulk_update

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.

Features

  • 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

Installation

To install the required dependencies, run the following command:

pip install -r requirements.txt

Install Az CLI

Usage

  • Authenticate with Azure DevOps using Az CLI:

    az login
  • Adjust the settings.yaml file - at least change organization_name and change or remove projects_and_repos

  • Run the script:

    python ado_bulk_update.py

Settings

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 to true, the script will only simulate the updates without actually making any changes.