cyberneticlibrary

Format code and create pull request

prcommandsetup L15,433
zenml-io/zenml
What it does

Format code, stage changes, and create pull requests

Best for

One-command workflow to atomically format, stage, and push a PR without manual git steps.

Inputs
  • · optional base branch name
  • · project files
Outputs
  • · formatted repo state
  • · staged git changes
  • · GitHub PR URL
Requires
  • · Bash
  • · git
  • · formatting script (scripts/format.sh)
  • · GitHub API
Preconditions

git repo initialized; format script available; GitHub auth token; git staging area clean or ready

Failure modes
  • · Format script errors or has no executable
  • · git push rejected (branch protection or auth)
  • · GitHub API rate limit or network error
Trust signals
  • · Atomicity: format → stage → commit → push in one command
  • · git status verification before push
  • · PR template auto-generated