Skip to content

polygraph git

Git workflows

Terminal window
polygraph git
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI

Create PRs from a spec file

Terminal window
polygraph git create-pr
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--descriptionstringDescription text to save with the session
--agent-session-idstringAgent session ID to save with the description
--spec-filestringPath to PR spec JSON file

Associate an existing PR with a session

Terminal window
polygraph git associate-pr
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--descriptionstringDescription text to save with the session
--agent-session-idstringAgent session ID to save with the description
--pr-urlstringPR URL to associate
--branchstringBranch name to associate by
--repo, -rstringRepository (ID, full name, or short name)

Mark one or more PRs ready for review

Terminal window
polygraph git mark-pr-ready
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--agent-session-idstringAgent session ID to save with the description
--pr-urlarray<string>PR URL(s) to mark ready

Push the current branch for a session repository

Terminal window
polygraph git push-branch [repo] [branch]
NameTypeDescription
repostringRepository (ID, full name, or short name)
branchstringBranch name to push
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)