Repositories

Create a commit status

Records a status for the exact commit OID and context. A later status for the same context supersedes it in the combined result. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/statuses/{hash}

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:contents:write

Path parameters

ownerstring required
repostring required
hashstring required

Request body

contextstring required
state'error' | 'failure' | 'pending' | 'success' required
descriptionstring nullable
target_urlstring uri nullable

Response

Response for status 201

idstring required
contextstring required
state'error' | 'failure' | 'pending' | 'success' required
descriptionstring nullable required
targetUrlstring nullable required
creatorIdstring required
createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.