Commit and push with quality gates
commit-and-pushcommandsetup L1★1
dtammam/tasksync ↗What it does
Commit changes with co-author trailer and push to origin
Best for
Teams enforcing commit message hygiene and co-authorship tracking without manual trailer editing.
Inputs
- · Commit message (reject generic messages: update, fix, wip)
Outputs
- · Staged changes committed (git add <explicit paths>)
- · Commit with Co-Authored-By trailer
- · Pushed to origin (git push)
Requires
- · git
Preconditions
- · Changes exist (staged or unstaged)
- · User provides commit message
- · Origin remote configured
Failure modes
- · No commit message provided — ask user
- · Generic message (update/fix/wip) — reject and ask for specifics
- · git push fails (conflict/auth) — stop and ask user to resolve
Trust signals
- · Rejects generic messages upfront (prevents commit msg debt)
- · Explicit file staging (not git add -A, avoids accidental secret commit)
- · No --no-verify or force-push (enforces pre-commit hooks)