Skip to content

tg pr create

Create a pull request from the current branch

Create a pull request by uploading a gzipped git patch and writing a sh.tangled.repo.pull record. By default, the current repository and branch are both the source and target repository, and origin’s default branch is the target branch. Use –repo and –source-repo for a fork-based pull request.

tg pr create [flags]
-B, --base string Target branch (default: origin's default branch)
-b, --body string Pull request body
-F, --body-file string Read pull request body from file
-H, --head string Source branch (default: current branch)
-h, --help help for create
-R, --repo string Target repository as handle/repo
--source-repo string Source repository as handle/repo (for fork-based pull requests)
-t, --title string Pull request title
--account string Account handle or DID to use (overrides the active account and TG_ACCOUNT)
--appview string Appview host URL (overrides config file and TG_APPVIEW) (default "https://bobbin.klbr.net")
--config string Path to config file (default: $XDG_CONFIG_HOME/tg/config.toml)
--json Output in JSON format
  • tg pr - Manage pull requests on a Tangled repository