Tool to automate committing composer changes to Git.
composer.lock
file must be in git.- Not allowed to run
composer update
orcomposer require
if changes to your git working copy.. - After
composer update
orcomposer require
orcomposer remove
:
@TODO: Should we just check a diff after composer command? or is this there a definitive list of commands that change these files? - Create a new branch (optionally)
- Commit changes to
composer.*
files with automated message, saving the command that was run, and the output of the command. - Push the new branch (optionally).
NEXT UP: provision-ops/update-dependencies handles detection of updates and runs after composer-commit to create PRs with new deps.