r/azuredevops • u/Namoshek • 22d 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.
2
u/ArwensArtHole 21d 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.
1
u/No_Resident8597 21d 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?