r/azuredevops • u/Namoshek • 21d ago
Git Bulk Changes Extension
We've many projects that are very similar because they were created from templates. Whenever we have to make non-functional changes related to the project setup, that means updating a few dozens of repositories with the same changes. To speed things up, I've written a small extension that helps to perform bulk changes across a large number of repositories - either through direct commits or pull requests.
Git Bulk Changes Extension: https://marketplace.visualstudio.com/items?itemName=namoshek.ado-git-bulk-changes
The extension helps with:
Identical changes across many repositories like adding a file, moving/renaming a file, deleting files, etc. - also entire git commit diffs can be applied
Previewing changes before actually committing them (directly or via pull request)
Tracking previous bulk changes (currently the history is scoped per user and limited to 100 entries per user)
Common use cases we use it for:
When working with project templates, apply similar changes made to the template to all the projects created from the template.
Update pipelines
Update dependencies (like NuGet, etc)
Update common artifacts like Dockerfiles, dev-tool configs (e.g. ESlint), etc.
Add new artifacts like a Renovate config
... and all the other things one does not like to perform dozens of times by hand
Worth noting: the extension runs entirely in the browser and has no external dependencies or connections. Each user can perform the actions they already can perform manually, since the extension uses the exact same APIs with the same permissions. However, as a full disclaimer, the tool obviously makes it possible to cause harm more easily through bulk operations. It does not replace proper policy setups - in fact, it is strongly encouraged to use it with proper pull request policies to improve the overall workflow and confidence in the changes.
1
u/No_Resident8597 20d ago
This solves a genuinely tedious problem, especially for teams maintaining projects that started from the same template. The preview and PR workflow seem important when changes affect dozens of repos. How do you handle conflicts when individual projects have drifted from the original template?
1
u/Namoshek 20d ago
It depends on the drift and whether it is known, easily detectable or neither. Some things can be covered by simply using wildcards; some other things need manual intervention. Let's assume a specific file like a pipeline was renamed manually. In that case, the preview will show an error or warning (depending on the config) for the affected repositories. Sometimes it is then worth looking into those repos and adding the identical operation a second time (in this example, for the new file name), but other times it's a manually task to align that project. There isn't really a one-size-fits-all solution here, unfortunately.
It will be interesting to see whether these are tasks we perform completely with AI agents in the future or not. As of now, I think at least some tasks are still more efficiently to be completed with tools like this.
2
u/ArwensArtHole 20d ago
I’ll be brutally honest, it sounds like you just don’t have good project management. Most of this can be solved with good use of templating and ops.