cml icon indicating copy to clipboard operation
cml copied to clipboard

`commit create`

Open casperdcl opened this issue 2 years ago • 3 comments

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

casperdcl avatar Jan 11 '23 03:01 casperdcl

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. 🤔

0x2b3bfa0 avatar Jan 17 '23 17:01 0x2b3bfa0

Because a PR is more heavyweight/overkill, and also might have some undesirable side-effects (trigger different workflows).

casperdcl avatar Jan 26 '23 22:01 casperdcl

It's indeed a bit more heavyweight, but also more idiomatic: otherwise we'd be reinventing automatic conflict resolution.

0x2b3bfa0 avatar Feb 01 '23 11:02 0x2b3bfa0