cml
cml copied to clipboard
`commit create`
With similar convenience options as cml pr create
.
cml commit create [--skip-ci] [--message=<...>] [--user-<name|email>=<...>]
Example use case:
cml ci
git commit -a -m "CML commit [skip ci]"
while ! git push; do
git fetch origin $BRANCH
git rebase origin/$BRANCH
done
to push a new commit without infinite CI recursion or overwriting simultaneous pushes
How is this better or more reliable than pull requests? It looks like discord#cml/1062574117179641946 could be solved with cml pr create --squash
instead of this. 🤔
Because a PR is more heavyweight/overkill, and also might have some undesirable side-effects (trigger different workflows).
It's indeed a bit more heavyweight, but also more idiomatic: otherwise we'd be reinventing automatic conflict resolution.