Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/better-auth/better-hub/llms.txt

Use this file to discover all available pages before exploring further.

Get Workflow Runs

Retrieves workflow runs for a repository or specific workflow.
GET /api/workflow-runs

Query Parameters

owner
string
required
The repository owner (user or organization)
repo
string
required
The repository name
workflow_id
number
Optional workflow ID to filter runs for a specific workflow
page
number
default:"1"
Page number for pagination (minimum 1)
per_page
number
default:"30"
Number of results per page (1-100)

Response

total_count
number
Total number of workflow runs
workflow_runs
array
Array of workflow run objects

Example Request

curl "https://yourdomain.com/api/workflow-runs?owner=octocat&repo=Hello-World"

Error Responses


Compare Workflow Runs

Compare multiple workflow runs to analyze differences in execution time, status, and job results.
GET /api/compare-runs

Query Parameters

owner
string
required
The repository owner (user or organization)
repo
string
required
The repository name
run_ids
array
required
Array of workflow run IDs to compare (2-10 runs)

Response

runs
array
Array of run comparison objects

Example Request

curl "https://yourdomain.com/api/compare-runs?owner=octocat&repo=Hello-World&run_ids=123&run_ids=456&run_ids=789"

Error Responses


Get Check Status

Retrieves the check status for a specific Git reference (branch, tag, or commit SHA).
GET /api/check-status

Query Parameters

owner
string
required
The repository owner (user or organization)
repo
string
required
The repository name
ref
string
required
Git reference (branch name, tag, or commit SHA)

Response

state
string
Overall check state: success, failure, pending, error
statuses
array
Array of individual check/status objects
check_runs
array
Array of check run objects from GitHub Checks API

Example Request

curl "https://yourdomain.com/api/check-status?owner=octocat&repo=Hello-World&ref=main"

Example Response

{
  "state": "success",
  "statuses": [
    {
      "context": "continuous-integration/travis-ci",
      "state": "success",
      "description": "The Travis CI build passed",
      "target_url": "https://travis-ci.org/octocat/Hello-World/builds/1"
    }
  ],
  "check_runs": [
    {
      "name": "build",
      "status": "completed",
      "conclusion": "success",
      "html_url": "https://github.com/octocat/Hello-World/runs/4"
    }
  ]
}

Error Responses


Get Job Logs

Retrieves parsed logs for a specific workflow job.
GET /api/job-logs

Query Parameters

owner
string
required
The repository owner (user or organization)
repo
string
required
The repository name
job_id
string
required
The workflow job ID

Response

steps
array
Array of log step objects

Example Request

curl "https://yourdomain.com/api/job-logs?owner=octocat&repo=Hello-World&job_id=12345"

Example Response

{
  "steps": [
    {
      "stepNumber": 1,
      "stepName": "Set up job",
      "lines": [
        {
          "timestamp": "2024-01-15T10:30:00Z",
          "content": "Current runner version: '2.311.0'",
          "annotation": null
        }
      ]
    },
    {
      "stepNumber": 2,
      "stepName": "Run tests",
      "lines": [
        {
          "timestamp": "2024-01-15T10:30:15Z",
          "content": "Running test suite...",
          "annotation": null
        },
        {
          "timestamp": "2024-01-15T10:30:16Z",
          "content": "Test failed: expected true, got false",
          "annotation": "error"
        }
      ]
    }
  ]
}

Error Responses

Notes

  • All workflow endpoints require authentication via session cookies
  • Logs are parsed to extract step groups, timestamps, and GitHub annotations
  • The /api/compare-runs endpoint fetches up to 100 jobs per run
  • Check status combines data from both GitHub Status API and Checks API
  • Workflow run pagination supports 1-100 results per page

Build docs developers (and LLMs) love