Create a commit status
POST
/repos/{owner}/{repo}/statuses/{sha} https://api.github.com
Users with push access in a repository can create commit statuses for a given SHA.
Note: there is a limit of 1000 statuses per sha and context within a repository. Attempts to create more than 1000 statuses will result in a validation error.
Parameters
path Path Parameters
| Name | Type |
|---|---|
owner
required
The account owner of the repository. The name is not case sensitive. | string |
repo
required
The name of the repository without the | string |
sha
required
| string |
Request Body
application/json
required
{
state: "error" | "failure" | "pending" | "success";
target_url?: string | null;
description?: string | null;
context?: string;
}
state: "error" | "failure" | "pending" | "success";
target_url?: string | null;
description?: string | null;
context?: string;
}
Responses
201 application/json
Response
interface Status {
url: string;
avatar_url: string | null;
id: number;
node_id: string;
state: string;
description: string | null;
target_url: string | null;
context: string;
created_at: string;
updated_at: string;
creator:SimpleUser | null;
}
url: string;
avatar_url: string | null;
id: number;
node_id: string;
state: string;
description: string | null;
target_url: string | null;
context: string;
created_at: string;
updated_at: string;
creator:
}