gk work pr create
Create pull requests for repos ahead of master
Synopsis
The pr create command will create a pull request for each repository within the work item that is ahead of master. The provided title and body will be used for each repository within the work item. If you use the AI flag, –ai, A unique title and body will be generated based on the changes made.
With –ai, pass –model
gk work pr create [flags]
Examples
gk work pr create --ai
gk work pr create --ai --model <MODEL_ID>
gk work pr create -t "Title of Pull Request" -b "Body of Pull Request"
Options
--ai Have AI generate pull request title and body
-b, --body string Body of the pull request to be created
-h, --help help for create
--input-json string Build the PR from a JSON object {"title","body","push"} (use "-" to read from stdin); cannot be combined with --title/--body/--ai
--model string AI model id for this invocation (does not change saved settings)
-p, --push Push repository if it is ahead from origin
-t, --title string Title of the pull request to be created. If empty, the name of the work item will be used.
Options inherited from parent commands
--json Emit machine-readable JSON on stdout (GK_OUTPUT=json sets it session-wide)
--no-telemetry Disable telemetry (OTel spans, Sentry) for this invocation
--session string (Optional) Isolate auth and cache under a named session
SEE ALSO
- gk work pr - Manage your PR