GT-PR-CHECKS(1) gitea-cli Manual GT-PR-CHECKS(1) NAME gt-pr-checks - Show the status checks of a pull request SYNOPSIS gt pr checks [ | | ] [flags] DESCRIPTION Show the latest status of each check of a pull request's head commit. gt exits with 8 while checks are pending and with 1 when a check failed, like gh. With --watch, it waits until every check finished, or one failed, and polls on through an outage of the instance of up to 5 minutes. With --required, only the checks that the branch protection of the base branch requires are shown and awaited, so that a flaky optional check does not hold a merge back. A required check that has not reported yet is pending under the name of its pattern, a rule without patterns requires every check, and gt fails when the base branch requires none. ARGUMENTS A pull request can be supplied as argument in any of the following formats: - by number, such as "13" or "#13" - by URL, such as "https://gitea.com/OWNER/REPO/pulls/13" - by the name of its head branch, such as "feature/login" or "bob:feature/login"; a branch that reads as OWNER/REPO#N, such as "fix/login#2", needs the OWNER:BRANCH form Without an argument, the pull request of the current branch is selected. JSON FIELDS created_at, description, id, name, sha, state, updated_at, url OPTIONS -h, --help[=false] help for checks --interval=5s Time between refreshes with --watch --required[=false] Only the checks that the branch protection requires --timeout=1h0m0s Longest time to wait with --watch --watch[=false] Wait for the checks to finish, stopping at the first failure -w, --web[=false] Open the pull request in the browser OPTIONS INHERITED FROM PARENT COMMANDS --csv[=""] Output CSV with the specified comma-separated fields, or all fields --cwd="" Working directory for repository discovery --debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr --host="" Gitea instance URL, including any base path --interactive[=false] Allow prompts with machine output -q, --jq="" Filter JSON output using a jq expression; implies --json --json[=""] Output JSON with the specified comma-separated fields, or all fields --no-input[=false] Disable prompts and implicit editor/browser interactions --remote="" Git remote used for repository discovery -R, --repo="" Select a repository as OWNER/REPO or URL --sudo="" Perform API requests as this user (requires an administrator account) --template="" Format JSON output using a Go template; implies --json (see gt help formatting) --user="" Account name on the selected instance EXAMPLE # Show the checks of the current branch's pull request $ gt pr checks # Only the checks that must pass to merge $ gt pr checks 13 --required --watch # Wait until the checks of #13 finish, then merge it $ gt pr checks 13 --watch && gt pr merge 13 SEE ALSO gt-pr(1) gitea-cli Nov 2026 GT-PR-CHECKS(1)