# Print an optspec for argparse to handle cmd's options that are independent of any subcommand.
function __fish_jj_gh_global_optspecs
    string join \n v/verbose q/quiet log-level= remote= upstream-remote= gh-askpass= askpass-timeout= h/help V/version
end

function __fish_jj_gh_needs_command
    # Figure out if the current invocation already has a command.
    set -l cmd (commandline -opc)
    set -e cmd[1]
    argparse -s (__fish_jj_gh_global_optspecs) -- $cmd 2>/dev/null
    or return
    if set -q argv[1]
        # Also print the command, so this can be used to figure out what it is.
        echo $argv[1]
        return 1
    end
    return 0
end

function __fish_jj_gh_using_subcommand
    set -l cmd (__fish_jj_gh_needs_command)
    test -z "$cmd"
    and return 1
    contains -- $cmd[1] $argv
end

complete -c jj-gh -n "__fish_jj_gh_needs_command" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_needs_command" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_needs_command" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_needs_command" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_needs_command" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_needs_command" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -s V -l version -d 'Print version'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -f -a "pr" -d 'Commands to work with PRs'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -f -a "debug" -d 'Diagnostic subcommands. Useful for inspecting the resolved config and pre-flight checks'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -f -a "completions" -d 'Generate completions (on stdout) for the specified shell'
complete -c jj-gh -n "__fish_jj_gh_needs_command" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "auto-merge" -d 'Enable auto-merge on a PR'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "am" -d 'Enable auto-merge on a PR'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "create" -d 'Open your preferred editor to create a PR from a revision'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "c" -d 'Open your preferred editor to create a PR from a revision'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "edit" -d 'Edit an existing PR\'s title, body, base, labels, reviewers, draft state, and auto-merge settings via the markdown frontmatter editor flow'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "e" -d 'Edit an existing PR\'s title, body, base, labels, reviewers, draft state, and auto-merge settings via the markdown frontmatter editor flow'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "fetch" -d 'Fetch a pull request into a local bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "f" -d 'Fetch a pull request into a local bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "log" -d 'Like `jj log`, but injects PR metadata (e.g. number, CI status, URL)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "l" -d 'Like `jj log`, but injects PR metadata (e.g. number, CI status, URL)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "restack" -d 'Push the current `jj` stack shape up to GitHub by updating each PR\'s base branch to match its closest stacked ancestor bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "rs" -d 'Push the current `jj` stack shape up to GitHub by updating each PR\'s base branch to match its closest stacked ancestor bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "retry-failed" -d 'Re-run failed CI jobs on a PR, or on all local PRs with failed CI'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "rerun" -d 'Re-run failed CI jobs on a PR, or on all local PRs with failed CI'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "url" -d 'Lookup the PR by the given number or revision ID and print its full URL. This is useful in pipes such as `jj-gh pr url <rev> | pbcopy` or `jj-gh pr url <rev> | wl-copy`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and not __fish_seen_subcommand_from auto-merge am create c edit e fetch f log l restack rs retry-failed rerun url help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -s m -l method -d 'Merge method used when enabling auto-merge. Overrides config `auto_merge_method` (default `merge`)' -r -f -a "merge\t''
squash\t''
rebase\t''"
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from auto-merge" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -s m -l method -d 'Merge method used when enabling auto-merge. Overrides config `auto_merge_method` (default `merge`)' -r -f -a "merge\t''
squash\t''
rebase\t''"
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from am" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l base -d 'Override the base bookmark. Default: closest ancestor bookmark on the stack, falling back to jj `trunk()`, then to the configured `default_base_branch`. Errors if none resolve' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l auto-merge-method -d 'Merge method used when auto-merge is enabled. Overrides config `auto_merge_method` (default `merge`)' -r -f -a "merge\t''
squash\t''
rebase\t''"
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -s T -l template -d 'jj template string used to render the PR body. Evaluated against the revset being PR\'d in chronological order (`--reversed`), so a multi-commit stack renders bottom-up' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l template-file -d 'Path or name (under `.github/PULL_REQUEST_TEMPLATE/`) of a markdown template file to use as the PR body. Mutually exclusive with `-T` and `--no-template`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l title-template -d 'jj template string used to render candidate PR titles. Evaluated once per commit in the PR revset' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -s e -l editor -d 'Editor command, e.g. `--editor "nvim +7"`. Precedence: this flag, then `editor` in config, then `$VISUAL`, then `$EDITOR`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l draft -d 'Force the PR to be a draft. Overrides config (default: `draft = false`). Use `--no-draft` to force non-draft'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l no-draft -d 'Force the PR to be non-draft. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l auto-merge -d 'Enable auto-merge on the PR after creation (merges once required checks pass). Overrides config (default: `auto_merge = false`). Use `--no-auto-merge` to force no auto-merge'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l no-auto-merge -d 'Disable auto-merge on the created PR. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l no-template -d 'Skip body templating entirely'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l pick-title -d 'Interactively choose which commit supplies the PR title'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l no-edit -d 'Create the PR without opening an editor. Useful when combined with `--draft`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l diffs -d 'Show a preview of the PR diffs while creating the PR body. Overrides `pr_create_show_diffs` configuration. Use `--no-diffs` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -l no-diffs -d 'Hide the PR diff preview while creating the PR body. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from create" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l base -d 'Override the base bookmark. Default: closest ancestor bookmark on the stack, falling back to jj `trunk()`, then to the configured `default_base_branch`. Errors if none resolve' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l auto-merge-method -d 'Merge method used when auto-merge is enabled. Overrides config `auto_merge_method` (default `merge`)' -r -f -a "merge\t''
squash\t''
rebase\t''"
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -s T -l template -d 'jj template string used to render the PR body. Evaluated against the revset being PR\'d in chronological order (`--reversed`), so a multi-commit stack renders bottom-up' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l template-file -d 'Path or name (under `.github/PULL_REQUEST_TEMPLATE/`) of a markdown template file to use as the PR body. Mutually exclusive with `-T` and `--no-template`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l title-template -d 'jj template string used to render candidate PR titles. Evaluated once per commit in the PR revset' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -s e -l editor -d 'Editor command, e.g. `--editor "nvim +7"`. Precedence: this flag, then `editor` in config, then `$VISUAL`, then `$EDITOR`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l draft -d 'Force the PR to be a draft. Overrides config (default: `draft = false`). Use `--no-draft` to force non-draft'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l no-draft -d 'Force the PR to be non-draft. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l auto-merge -d 'Enable auto-merge on the PR after creation (merges once required checks pass). Overrides config (default: `auto_merge = false`). Use `--no-auto-merge` to force no auto-merge'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l no-auto-merge -d 'Disable auto-merge on the created PR. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l no-template -d 'Skip body templating entirely'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l pick-title -d 'Interactively choose which commit supplies the PR title'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l no-edit -d 'Create the PR without opening an editor. Useful when combined with `--draft`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l diffs -d 'Show a preview of the PR diffs while creating the PR body. Overrides `pr_create_show_diffs` configuration. Use `--no-diffs` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -l no-diffs -d 'Hide the PR diff preview while creating the PR body. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from c" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -s e -l editor -d 'Editor command, e.g. `--editor "nvim +7"`. Precedence: this flag, then `editor` in config, then `$VISUAL`, then `$EDITOR`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -s f -l force -d 'Edit even if the PR body is empty. By default, `jj-gh` refuses to edit an empty body to avoid clobbering one that exists but failed to load'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l diffs -d 'Show a preview of the PR diffs while editing the PR. Overrides `pr_edit_show_diffs` configuration. Use `--no-diffs` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -l no-diffs -d 'Hide the PR diff preview while editing the PR. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from edit" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -s e -l editor -d 'Editor command, e.g. `--editor "nvim +7"`. Precedence: this flag, then `editor` in config, then `$VISUAL`, then `$EDITOR`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -s f -l force -d 'Edit even if the PR body is empty. By default, `jj-gh` refuses to edit an empty body to avoid clobbering one that exists but failed to load'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l diffs -d 'Show a preview of the PR diffs while editing the PR. Overrides `pr_edit_show_diffs` configuration. Use `--no-diffs` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -l no-diffs -d 'Hide the PR diff preview while editing the PR. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from e" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -s T -l template -d 'Override the bookmark template. The argument is a jj template string evaluated once against `root()` (no commit context). Default: `pr_fetch_bookmark_template` in config, else `"pr-" ++ pr_number ++ "/" ++ pr_branch"`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -s f -l force -d 'Replace an existing local bookmark of the same name'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from fetch" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -s T -l template -d 'Override the bookmark template. The argument is a jj template string evaluated once against `root()` (no commit context). Default: `pr_fetch_bookmark_template` in config, else `"pr-" ++ pr_number ++ "/" ++ pr_branch"`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -s f -l force -d 'Replace an existing local bookmark of the same name'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from f" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -s T -d 'Override `pr_log_template` from config for this invocation. Sets the body of the default `pr_log` template alias jj-gh injects. Has no effect if you pass your own `-T` / `--template` in forwarded `jj log` args (after `--`)' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l nerdfonts -d 'Force enable the use of nerdfont icons in the default `pr log` template. Overrides config. Use `--no-nerdfonts` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -l no-nerdfonts -d 'Force the default `pr log` template not to use nerdfont icons. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from log" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -s T -d 'Override `pr_log_template` from config for this invocation. Sets the body of the default `pr_log` template alias jj-gh injects. Has no effect if you pass your own `-T` / `--template` in forwarded `jj log` args (after `--`)' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l nerdfonts -d 'Force enable the use of nerdfont icons in the default `pr log` template. Overrides config. Use `--no-nerdfonts` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -l no-nerdfonts -d 'Force the default `pr log` template not to use nerdfont icons. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from l" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -s T -l template -d 'Template to use in interactive mode; conflicts with `--json` and `--dry-run`. The same template aliases as `pr log` are injected here. See `jj-gh pr log --help`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l dry-run -d 'Print the proposed plan and exit without launching the TUI. No PR is updated. Auto-enabled when stdout is not a terminal'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l json -d 'Emit the proposed plan as JSON. Implies `--dry-run`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l nerdfonts -d 'Force enable nerdfont icons in the default restack/log template. Overrides config. Use `--no-nerdfonts` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -l no-nerdfonts -d 'Force the default restack/log template not to use nerdfont icons. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from restack" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -s T -l template -d 'Template to use in interactive mode; conflicts with `--json` and `--dry-run`. The same template aliases as `pr log` are injected here. See `jj-gh pr log --help`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l dry-run -d 'Print the proposed plan and exit without launching the TUI. No PR is updated. Auto-enabled when stdout is not a terminal'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l json -d 'Emit the proposed plan as JSON. Implies `--dry-run`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l nerdfonts -d 'Force enable nerdfont icons in the default restack/log template. Overrides config. Use `--no-nerdfonts` to disable'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -l no-nerdfonts -d 'Force the default restack/log template not to use nerdfont icons. Overrides config'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rs" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l cancel-timeout -d 'Seconds to wait for cancelled runs to finalize before re-running. Only meaningful with --cancel' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l all -d 'Retry failed CI on all local PRs'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -l cancel -d 'Cancel any in-progress runs and restart the entire pipeline. Without this flag, the command fails if CI has not yet completed'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from retry-failed" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l cancel-timeout -d 'Seconds to wait for cancelled runs to finalize before re-running. Only meaningful with --cancel' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l all -d 'Retry failed CI on all local PRs'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -l cancel -d 'Cancel any in-progress runs and restart the entire pipeline. Without this flag, the command fails if CI has not yet completed'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from rerun" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else the default upstream' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from url" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "auto-merge" -d 'Enable auto-merge on a PR'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "create" -d 'Open your preferred editor to create a PR from a revision'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "edit" -d 'Edit an existing PR\'s title, body, base, labels, reviewers, draft state, and auto-merge settings via the markdown frontmatter editor flow'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "fetch" -d 'Fetch a pull request into a local bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "log" -d 'Like `jj log`, but injects PR metadata (e.g. number, CI status, URL)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "restack" -d 'Push the current `jj` stack shape up to GitHub by updating each PR\'s base branch to match its closest stacked ancestor bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "retry-failed" -d 'Re-run failed CI jobs on a PR, or on all local PRs with failed CI'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "url" -d 'Lookup the PR by the given number or revision ID and print its full URL. This is useful in pipes such as `jj-gh pr url <rev> | pbcopy` or `jj-gh pr url <rev> | wl-copy`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand pr; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -f -a "config" -d 'Print the merged config with the token rendered as `***`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -f -a "auth" -d 'Resolve the GitHub token and report success or failure. Never prints the token itself'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -f -a "rev" -d 'Resolve a revision and print commit info, ancestor bookmark, remote URLs, and the detected default branch'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -f -a "pr-lookup" -d 'Pre-flight lookup for a PR: resolve the target, check if a PR is already open for the head, and confirm the base branch exists on the remote'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and not __fish_seen_subcommand_from config auth rev pr-lookup help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from config" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from auth" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from rev" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from pr-lookup" -s h -l help -d 'Print help'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from help" -f -a "config" -d 'Print the merged config with the token rendered as `***`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from help" -f -a "auth" -d 'Resolve the GitHub token and report success or failure. Never prints the token itself'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from help" -f -a "rev" -d 'Resolve a revision and print commit info, ancestor bookmark, remote URLs, and the detected default branch'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from help" -f -a "pr-lookup" -d 'Pre-flight lookup for a PR: resolve the target, check if a PR is already open for the head, and confirm the base branch exists on the remote'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand debug; and __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l jj-alias -d 'Emit an overlay for `jj <NAME> <tab>` instead of the standalone `jj-gh` script. Pass the jj alias name (e.g. `pr`). Must be paired with `--subcommand`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l subcommand -d 'jj-gh top-level subcommand whose tree the overlay describes (e.g. `pr`). Must be paired with `--jj-alias`' -r -f -a "pr\t''"
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l log-level -d 'Set log level explicitly, overrides `-v` and `-q`' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l remote -d 'Git remote used for the user\'s own pushes and PR head lookups. Precedence: this flag, then git\'s auto-detected default push remote, then `default_remote` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l upstream-remote -d 'Git remote used as the PR target in fork workflows. Precedence: this flag, then `upstream_remote` in config, else [`crate::gh::remote::DEFAULT_UPSTREAM_REMOTE`]' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l gh-askpass -d 'Askpass helper command that prints a GitHub token on stdout; e.g. `--gh-askpass "op read op://Vault/gh/token"`. Highest-priority token source; outranks `$GH_ASKPASS`, the token env vars, and `gh_askpass` in config' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -l askpass-timeout -d 'Timeout in seconds for the askpass helper. Default: 20' -r
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -s v -l verbose -d 'Increase log verbosity (repeat for more, e.g. `-vv`)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -s q -l quiet -d 'Drop log level to `ERROR`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand completions" -s h -l help -d 'Print help (see more with \'--help\')'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and not __fish_seen_subcommand_from pr debug completions help" -f -a "pr" -d 'Commands to work with PRs'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and not __fish_seen_subcommand_from pr debug completions help" -f -a "debug" -d 'Diagnostic subcommands. Useful for inspecting the resolved config and pre-flight checks'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and not __fish_seen_subcommand_from pr debug completions help" -f -a "completions" -d 'Generate completions (on stdout) for the specified shell'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and not __fish_seen_subcommand_from pr debug completions help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "auto-merge" -d 'Enable auto-merge on a PR'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "create" -d 'Open your preferred editor to create a PR from a revision'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "edit" -d 'Edit an existing PR\'s title, body, base, labels, reviewers, draft state, and auto-merge settings via the markdown frontmatter editor flow'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "fetch" -d 'Fetch a pull request into a local bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "log" -d 'Like `jj log`, but injects PR metadata (e.g. number, CI status, URL)'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "restack" -d 'Push the current `jj` stack shape up to GitHub by updating each PR\'s base branch to match its closest stacked ancestor bookmark'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "retry-failed" -d 'Re-run failed CI jobs on a PR, or on all local PRs with failed CI'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from pr" -f -a "url" -d 'Lookup the PR by the given number or revision ID and print its full URL. This is useful in pipes such as `jj-gh pr url <rev> | pbcopy` or `jj-gh pr url <rev> | wl-copy`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from debug" -f -a "config" -d 'Print the merged config with the token rendered as `***`'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from debug" -f -a "auth" -d 'Resolve the GitHub token and report success or failure. Never prints the token itself'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from debug" -f -a "rev" -d 'Resolve a revision and print commit info, ancestor bookmark, remote URLs, and the detected default branch'
complete -c jj-gh -n "__fish_jj_gh_using_subcommand help; and __fish_seen_subcommand_from debug" -f -a "pr-lookup" -d 'Pre-flight lookup for a PR: resolve the target, check if a PR is already open for the head, and confirm the base branch exists on the remote'
