spec-commit Official

Commits all changes with the spec's own commit message, and passes when there is nothing to commit.

Star on GitHub Add to a graph

spec-commitNodes in order: spec-commit.spec-commit (check)spec-commitspec-commitNodes in order: spec-commit.spec-commit (check)spec-commit
Kind
node
Name
spec-commit
Ref
main
Stars
0 stars
Install
canopy node install spec-commit
Report
Report

What this runs

Runs 1 shell commands and 0 agent instructions on your machine.

node "spec-commit"

if [ -z "$(git status --porcelain)" ]; then echo 'tree clean: nothing to commit'; exit 0; fi; if [ -z "$CANOPY_SPEC_COMMIT_MESSAGE" ]; then echo 'CANOPY_SPEC_COMMIT_MESSAGE is empty'; exit 1; fi; git add -A && git commit -q -m "$CANOPY_SPEC_COMMIT_MESSAGE" && echo "committed $(git log -1 --oneline)"

README

spec-commit

What this node is for: the deterministic commit step after a review. It commits all changes with the spec's own commit message, $CANOPY_SPEC_COMMIT_MESSAGE, and passes when there is nothing to commit.

Config: the command plus commit_rights: true, so the engine attributes the commit to this node. No platform, model, or cli bindings.

What the installer must fill in: nothing for the basic form. Pushing to the work branch is optional: if the graph should push after committing, append the push to the command.

Install:

canopy node install spec-commit