Skip to content

A tool for making bulk changes to Azure DevOps repositories

License

Notifications You must be signed in to change notification settings

msl0/ado_bulk_update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A tool for making bulk changes to Azure DevOps repositories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages