create_commit_status
Track and update GitHub commit statuses (success, failure, pending, error) for repositories. Provide a state, target URL, description, and context to manage CI/CD workflows and build notifications.
Instructions
Create a status for a commit (build passed/failed, etc.)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | A string label to differentiate this status from others | |
description | No | A short description of the status | |
owner | Yes | Repository owner (username or organization) | |
repo | Yes | Repository name | |
sha | Yes | The SHA of the commit to create a status for | |
state | Yes | The state of the status | |
target_url | No | The target URL to associate with this status |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"context": {
"description": "A string label to differentiate this status from others",
"type": "string"
},
"description": {
"description": "A short description of the status",
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"sha": {
"description": "The SHA of the commit to create a status for",
"type": "string"
},
"state": {
"description": "The state of the status",
"enum": [
"error",
"failure",
"pending",
"success"
],
"type": "string"
},
"target_url": {
"description": "The target URL to associate with this status",
"type": "string"
}
},
"required": [
"owner",
"repo",
"sha",
"state"
],
"type": "object"
}