gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
934 stars 62 forks source link

Proposal: commit diff as input for changes to make on given repos #26

Open lambdatom opened 3 years ago

lambdatom commented 3 years ago

Consider adding an option which will parse a commit and compile a list changes to apply on all supplied repos.

For example, a list containing file modifications, simple word substitutions, commit message, branch name, and similar information could be inferred from the commit change(s).

Motivation: This abstraction could be applied in CI/CD pipelines to automatically propagate simple, predictable changes across many repos on a regular basis.

jphuynh commented 3 years ago

In my opinion, I'm not sure that ingesting a diff fits in git-xargs core since it's something we could achieve with a script that git-xargs can run.

Do you have a specific example scenario in mind? Perhaps I could help with adding a sample script in https://github.com/gruntwork-io/git-xargs/tree/master/scripts.