# GitHub Checks

Blocks for creating and updating GitHub check runs, enabling custom CI integration and detailed status reporting on commits and pull requests.

## Github Create Check Run

### What it is

Creates a new check run for a specific commit in a GitHub repository

### How it works

This block creates a new check run associated with a specific commit using the GitHub Checks API. Check runs represent individual test suites, linting tools, or other CI processes that report status against commits or pull requests.

You specify the commit SHA, check name, and current status. For completed checks, provide a conclusion (success, failure, or neutral) and optional detailed output including title, summary, and extended text for rich reporting in the GitHub UI.

### Inputs

| Input           | Description                                                         | Type                                                                                                  | Required |
| --------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------- |
| repo\_url       | URL of the GitHub repository                                        | str                                                                                                   | Yes      |
| name            | The name of the check run (e.g., 'code-coverage')                   | str                                                                                                   | Yes      |
| head\_sha       | The SHA of the commit to check                                      | str                                                                                                   | Yes      |
| status          | Current status of the check run                                     | "queued" \| "in\_progress" \| "completed" \| "waiting" \| "requested" \| "pending"                    | No       |
| conclusion      | The final conclusion of the check (required if status is completed) | "success" \| "failure" \| "neutral" \| "cancelled" \| "timed\_out" \| "action\_required" \| "skipped" | No       |
| details\_url    | The URL for the full details of the check                           | str                                                                                                   | No       |
| output\_title   | Title of the check run output                                       | str                                                                                                   | No       |
| output\_summary | Summary of the check run output                                     | str                                                                                                   | No       |
| output\_text    | Detailed text of the check run output                               | str                                                                                                   | No       |

### Outputs

| Output     | Description                                | Type           |
| ---------- | ------------------------------------------ | -------------- |
| error      | Error message if check run creation failed | str            |
| check\_run | Details of the created check run           | CheckRunResult |

### Possible use case

**Custom CI Integration**: Create check runs for external CI systems that aren't natively integrated with GitHub.

**Code Quality Reporting**: Report linting, security scan, or test coverage results directly on commits and PRs.

**Deployment Status**: Track deployment progress by creating check runs that show pending, in-progress, and completed states.

***

## Github Update Check Run

### What it is

Updates an existing check run in a GitHub repository

### How it works

This block updates an existing check run's status, conclusion, and output details via the GitHub Checks API. Use it to report progress as your CI process advances through different stages.

You can update the status from queued to in\_progress to completed, and set the final conclusion when done. The output fields allow you to provide detailed results, annotations, and summaries visible in the GitHub UI.

### Inputs

| Input           | Description                                                         | Type                                                                                                  | Required |
| --------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------- |
| repo\_url       | URL of the GitHub repository                                        | str                                                                                                   | Yes      |
| check\_run\_id  | The ID of the check run to update                                   | int                                                                                                   | Yes      |
| status          | New status of the check run                                         | "queued" \| "in\_progress" \| "completed" \| "waiting" \| "requested" \| "pending"                    | Yes      |
| conclusion      | The final conclusion of the check (required if status is completed) | "success" \| "failure" \| "neutral" \| "cancelled" \| "timed\_out" \| "action\_required" \| "skipped" | Yes      |
| output\_title   | New title of the check run output                                   | str                                                                                                   | No       |
| output\_summary | New summary of the check run output                                 | str                                                                                                   | No       |
| output\_text    | New detailed text of the check run output                           | str                                                                                                   | No       |

### Outputs

| Output     | Description                           | Type           |
| ---------- | ------------------------------------- | -------------- |
| error      | Error message if the operation failed | str            |
| check\_run | Details of the updated check run      | CheckRunResult |

### Possible use case

**Progress Reporting**: Update check runs as your CI pipeline progresses through build, test, and deployment stages.

**Real-Time Feedback**: Provide immediate feedback on pull requests as tests complete, rather than waiting for the entire suite.

**Failure Details**: Update check runs with detailed error messages and output when tests fail.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/checks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
