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)
--descriptionstringSession description for handoff context (required; pass "none" to skip the update)
--agent-session-idstringAgent session ID to save with the session
--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)
--descriptionstringSession description for handoff context (required; pass "none" to skip the update)
--agent-session-idstringAgent session ID to save with the session
--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 session
--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)
--descriptionstringSession description for handoff context (required; pass "none" to skip the update)
--agent-session-idstringAgent session ID to save with the session

Fetch more commit history for a session repository

Terminal window
polygraph git fetch [repo]
NameTypeDescription
repostringRepository (ID, full name, or short name)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--depthnumberFetch the newest N commits per ref instead of the full history
--refarray<string>Additional remote branch(es) to fetch (repeatable)

Fetch and print the log for a CI job in a session

Terminal window
polygraph git ci-logs [session]
NameTypeDescription
sessionstringSession ID (auto-detects from cwd if omitted)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--jobnumber
--repostring