.nh .TH "GT-COMMIT-STATUS" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-commit-status - Show the state that CI reported for a commit .SH SYNOPSIS \fBgt commit status [flags]\fP .SH DESCRIPTION Show the latest status of each check that CI and other services reported for a commit, as gt pr checks does for a pull request. The exit status is 1 when a check failed and 8 while one is pending, so gt commit status main && deploy skips the deploy in both cases. A commit with no statuses reports none. It checks once and does not wait. .SS ARGUMENTS .EX A repository can be supplied as NAME (one of yours), OWNER/NAME, HOST/OWNER/NAME or a URL. Without an argument, the repository of the current Git clone is used. .EE .SS JSON FIELDS .EX created_at, description, id, name, sha, state, updated_at, url .EE .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for status .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--csv\fP="" Output CSV with the specified comma-separated \fBfields\fR .PP \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB-q\fP, \fB--jq\fP="" Filter JSON output using a jq \fBexpression\fR, of every field without --json .PP \fB--json\fP="" Output JSON with the specified comma-separated \fBfields\fR .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--template\fP="" Format JSON output using a Go \fBtemplate\fR, of every field without --json (see gt help formatting) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ gt commit status main $ gt commit status 3f2a9c1 --json name,state,url .EE .SH SEE ALSO \fBgt-commit(1)\fP