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

Update metadata on a session pull request

Terminal window
polygraph git update-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)
--pr-urlstringAssociated PR URL to update
--titlestringReplace the PR title
--bodystringReplace the PR body. Pass an empty string to clear it
--set-labelarray<string>Replace all labels. Repeat for multiple labels; use --clear-labels for none
--clear-labelsbooleanRemove all labels
--add-labelarray<string>Add a label. Repeat for multiple labels
--remove-labelarray<string>Remove a label. Repeat for multiple labels
--set-assigneearray<string>Replace all assignees. Repeat for multiple assignees; use --clear-assignees for none
--clear-assigneesbooleanRemove all assignees
--add-assigneearray<string>Add an assignee. Repeat for multiple assignees
--remove-assigneearray<string>Remove an assignee. Repeat for multiple assignees

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