Open source Enterprise Grafana Cloud
Last reviewed: March 11, 2026

GitHub query editor

This document describes the query types and response fields available in the GitHub data source query editor. Most query types use common Owner and Repository fields, and some support additional filtering through the Query field using GitHub search syntax.

Query types

Select a query type from the Query Type drop-down in the query editor:

  • Code scanning: Query code scanning alerts for a repository or organization.
  • Commit files: List files changed in a specific commit.
  • Commits: Retrieve a list of commits for a branch or ref within a repository, including commit message, author, and timestamp.
  • Contributors: Get a list of contributors to a repository.
  • Deployments: List deployments for a repository, including environment, ref, and task information.
  • Issues: List issues in a repository, using the GitHub query syntax to filter the response.
  • Labels: List labels defined in a repository.
  • Milestones: Retrieve milestones for a repository, which can be used to group issues and pull requests.
  • Packages: List packages published from a repository in an organization.
  • Projects: List projects associated with a user or organization.
  • Pull request files: List files changed in a specific pull request.
  • Pull requests: List pull requests for a repository, using the GitHub query syntax to filter the response.
  • Pull request reviews: List reviews for pull requests in a repository.
  • Releases: List created releases for a repository.
  • Repositories: List repositories for a user or organization.
  • Stargazers: Get a list of users who have starred a repository, including the ability to plot a total count over time.
  • Tags: List created tags for a repository.
  • Vulnerabilities: Query security vulnerabilities detected in a repository.
  • Workflows: List GitHub Actions workflows defined in a repository.
  • Workflow runs: List runs for a specific workflow, including status, conclusion, and timing information.
  • Workflow usage: Retrieve usage statistics for a workflow, such as run counts and durations.

Code scanning

Query code scanning alerts for a repository or organization. Useful for tracking security issues detected by GitHub’s code scanning tools.

Note

Code scanning requires additional permissions. Refer to Code scanning permissions.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repository. Leave empty to query alerts at the organization level.No
StateFilter by alert state: open, closed, dismissed, or fixedNo
RefThe Git reference to filter results. Format as refs/heads/<BRANCH_NAME> or <BRANCH_NAME>. For pull requests, use refs/pull/<NUMBER>/merge.No
Sample queries

Show all open code scanning alerts for the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • State: open

Show all code scanning alerts across the grafana organization:

  • Owner: grafana
  • Repository: (empty)
  • State: (empty)

Response

NameDescription
numberAlert number
created_atWhen the alert was created: YYYY-MM-DD HH:MM:SS
updated_atWhen the alert was last updated: YYYY-MM-DD HH:MM:SS
dismissed_atWhen the alert was dismissed, if applicable: YYYY-MM-DD HH:MM:SS
urlURL to the alert in the GitHub web UI
stateAlert state: open, closed, dismissed, or fixed
dismissed_byGitHub handle of the user who dismissed the alert
dismissed_reasonReason the alert was dismissed
dismissed_commentComment provided when the alert was dismissed
rule_idIdentifier for the rule that triggered the alert
rule_severitySeverity level of the rule
rule_security_severity_levelSecurity severity level of the rule
rule_descriptionShort description of the rule
rule_full_descriptionFull description of the rule
rule_tagsComma-separated list of tags associated with the rule
rule_helpHelp text for the rule
tool_nameName of the code scanning tool
tool_versionVersion of the code scanning tool
tool_guidGUID of the code scanning tool

Commits

Retrieve a list of commits for a branch or ref within a repository, including commit message, author, and timestamp. Useful for tracking code changes, deployment activity, or contributor history.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Ref (Branch/Tag)The branch or tag to list commits againstYes
Include filesInclude file-level change details for each commit. For details, refer to Response with Include files enabled.No
Sample queries

Show all commits to the main branch of the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Ref: main

Show all commits against a tag:

  • Owner: grafana
  • Repository: grafana
  • Ref: v12.0.0

Response

NameDescription
idCommit ID
authorName of the commit author
author_loginGitHub handle of the commit author
author_emailEmail address of the commit author
author_companyCompany name of the commit author
committed_atWhen the change was committed: YYYY-MM-DD HH:MM:SS
pushed_atWhen the commit was pushed: YYYY-MM-DD HH:MM:SS
messageThe commit message

Response with Include files enabled

Warning

This option makes one additional API call per commit. Avoid enabling it over large time ranges to prevent rate limiting.

When Include files is enabled, the response returns one row for each changed file in each commit:

NameDescription
idCommit ID
authorName of the commit author
author_loginGitHub handle of the commit author
author_emailEmail address of the commit author
author_companyCompany name of the commit author
committed_atWhen the change was committed: YYYY-MM-DD HH:MM:SS
pushed_atWhen the commit was pushed: YYYY-MM-DD HH:MM:SS
messageThe commit message
file_pathPath of the changed file
file_additionsNumber of lines added in this file
file_deletionsNumber of lines deleted in this file
file_changesTotal number of line changes in this file
file_statusChange type: added, modified, renamed, etc.
previous_filenameOriginal path for renamed files

Commit files

List files changed in a specific commit.

Note

The GitHub API returns at most 300 files for a single commit.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Commit SHAThe SHA of the target commitYes

Response

The response includes one row per changed file:

NameDescription
pathPath of the changed file
additionsNumber of lines added
deletionsNumber of lines deleted
changesTotal number of line changes
statusChange type: added, modified, renamed, etc.
previous_filenameOriginal path for renamed files

Contributors

Get a list of contributors to an organization or repository.

Note

This query returns a maximum of 200 results.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
QueryFilter for contributors by name or GitHub handleNo
Sample queries

Show all contributors to the grafana repository:

  • Owner: grafana
  • Repository: grafana

Search for contributors with bob in their name or handle:

  • Owner: grafana
  • Repository: grafana
  • Query: bob

Response

NameDescription
nameDisplay name of the contributor
loginGitHub handle of the contributor
emailEmail address of the contributor
companyCompany name of the contributor
urlURL to the contributor’s GitHub profile

Deployments

List deployments for a repository, including environment, ref, and task information. Deployments track deployment requests for specific refs (branches, tags, or SHAs) to different environments.

Query options

NameDescriptionRequired
OwnerGitHub user or organization that owns the repositoryYes
RepositoryName of the repositoryYes
SHAFilter deployments by the SHA recorded at creation timeNo
RefFilter by ref name (branch, tag, or SHA)No
TaskFilter by task name (for example, deploy or deploy:migrations)No
EnvironmentFilter by environment name (for example, production, staging, or qa)No
Sample queries

Show all deployments for the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana

Show all deployments to the production environment:

  • Owner: grafana
  • Repository: grafana
  • Environment: production

Show all deployments for a specific branch:

  • Owner: grafana
  • Repository: grafana
  • Ref: main

Response

NameDescription
idUnique identifier for the deployment
shaSHA of the commit that was deployed
refRef (branch, tag, or SHA) that was deployed
taskTask name (for example, deploy or deploy:migrations)
environmentEnvironment name (for example, production or staging)
descriptionDescription of the deployment
creatorGitHub handle of the user who created the deployment
created_atWhen the deployment was created: YYYY-MM-DD HH:MM:SS
updated_atWhen the deployment was last updated: YYYY-MM-DD HH:MM:SS
urlAPI URL for the deployment
statuses_urlAPI URL for the deployment statuses

Issues

List issues in a repository using the GitHub query syntax to filter the response. Useful for tracking open bugs, feature requests, or project tasks.

Note

This query returns a maximum of 1000 results.

Query options

NameDescriptionRequired
OwnerA GitHub user or organizationYes
RepositoryThe name of a repositoryNo
QueryUse GitHub’s query syntax to filter resultsNo
Time fieldThe time field to filter the responses on: CreatedAt, ClosedAt, or UpdatedAtYes
Sample queries

Show all closed issues labeled type/bug in the Grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Query: is:closed label:type/bug

Show all issues with “sql expressions” in the title:

  • Owner: grafana
  • Repository: grafana
  • Query: sql expressions in:title

Show open issues with no assignees (useful for identifying unowned work):

  • Owner: grafana
  • Repository: grafana
  • Query: is:open no:assignee

Show issues created in the last 7 days using the $__toDay macro:

  • Owner: grafana
  • Repository: grafana
  • Query: is:open created:>=$__toDay(-7)
  • Time field: CreatedAt

Response

NameDescription
titleIssue title
authorGitHub handle of the author
author_companyCompany name of the commit author
repoIssue repository
numberIssue number
stateIssue state: open or closed
closedtrue or false
created_atWhen the issue was created: YYYY-MM-DD HH:MM:SS
closed_atWhen the issue was closed: YYYY-MM-DD HH:MM:SS
updated_atWhen the issue was last updated: YYYY-MM-DD HH:MM:SS
labelsArray of labels, for example: ["type/bug", "needs more info"]
assigneesArray of assignees, for example: ["user1", "user2"]
milestoneMilestone title associated with the issue, if applicable

Labels

Get all labels defined in a repository, useful for categorizing issues and pull requests.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
QueryFilter on text in name and description for labelsNo
Sample queries

Show all labels for the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana

Response

NameDescription
nameLabel name
colorHexadecimal number
descriptionLabel description

Milestones

Retrieve milestones for a repository, which can be used to group issues and pull requests.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
QueryFilter on text in the milestone titleNo
Sample queries

Show all milestones for the grafana/grafana repository for v11 of Grafana:

  • Owner: grafana
  • Repository: grafana
  • Query: 11.

Response

NameDescription
titleMilestone title
authorGitHub handle of the user who created the milestone
closedWhether the milestone is closed: true or false
stateOne of OPEN or CLOSED
created_atWhen the milestone was created: YYYY-MM-DD HH:MM:SS
closed_atWhen the milestone was closed: YYYY-MM-DD HH:MM:SS
due_atWhen the milestone is due by: YYYY-MM-DD HH:MM:SS

Note

Milestone titles can be anything and are therefore parsed as a string. This means sorting by title may appear incorrect if you have numeric milestones, for example: 12.0.0. Transformations can be used to change the data type in this scenario.

Packages

List packages published from a repository in an organization.

Note

This query doesn’t support querying npm, RubyGems, or NuGet packages.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Package typeOne of: MAVEN, DOCKER, DEBIAN, or PYPIYes
NamesFilter for packages using a comma-separated list of namesNo
Sample queries

Show all packages uploaded to the grafana organization:

  • Organization: grafana

Response

NameDescription
namePackage name
platformPlatform or registry where the package is published
versionPackage version
typePackage type (for example, MAVEN, DOCKER, DEBIAN, PYPI)
prereleaseWhether the package version is a prerelease: true or false
downloadsNumber of downloads for the package version

Projects

List projects associated with a user or organization.

Note

This query returns a maximum of 200 results.

Query options

NameDescriptionRequired
Project OwnerOne of Organization or UserYes
OrganizationOrganization for the project (shown when Organization is selected)Yes
UserUser for the project (shown when User is selected)Yes
Project NumberEnter a specific project number to query for associated itemsNo
FilterAdd key-value filters based on the fields for project items (shown if Project Number is specified)No
Sample queries

Show all projects for the grafana organization:

  • Project Owner: Organization
  • Organization: grafana

Show all pull requests for the “Dashboards” project in the Grafana organization:

  • Project Owner: Organization
  • Organization: grafana
  • Project Number: 202
  • Filter: type equal PULL_REQUEST

Response

The response format depends on whether a project number is specified.

Without a project number
NameDescription
numberThe project number
titleTitle of the project
urlURL for the project
closedWhether the project has been closed: true or false
publicWhether the project is public: true or false
closed_atWhen the project was closed: YYYY-MM-DD HH:MM:SS
updated_atWhen the project was last updated
created_atWhen the project was created
short_descriptionThe description of the project
With a project number

Note

GitHub Projects allow for customization of default fields and custom fields to be added. Therefore, the response can vary significantly between projects.

NameDescription
nameName of the project item (issue or pull request)
idUnique identifier for the project item
typeType of the item (such as ISSUE, PULL_REQUEST)
statusStatus of the item (such as “In development”, “Shipped”) – this can be configured on the project
labelsComma-separated list of labels assigned to the item
assigneesComma-separated list of users assigned to the item
reviewersComma-separated list of reviewers (for pull requests)
repositoryName of the repository the item belongs to
milestoneMilestone associated with the item
priorityPriority value or label
archivedWhether the item is archived: true or false
created_atWhen the item was created: YYYY-MM-DD HH:MM:SS
updated_atWhen the item was last updated: YYYY-MM-DD HH:MM:SS
closed_atWhen the item was closed, if applicable: YYYY-MM-DD HH:MM:SS
(custom fields)Any custom defined fields are also returned alongside their values

Pull requests

List pull requests for a repository, using the GitHub query syntax to filter the response.

Query options

NameDescriptionRequired
OwnerA GitHub user or organizationYes
RepositoryThe name of a repositoryNo
QueryUse GitHub’s query syntax to filter resultsNo
Time fieldThe time field to filter the responses on: CreatedAt, ClosedAt, MergedAt, UpdatedAt, or NoneYes
Sample queries

Show all open pull requests authored by Renovate in the grafana/plugin-tools repository:

  • Owner: grafana
  • Repository: plugin-tools
  • Query: is:open author:app/renovate
  • Time field: None

Show pull requests merged in the selected time range:

  • Owner: grafana
  • Repository: grafana
  • Query: is:merged
  • Time field: MergedAt

Show open draft pull requests (useful for tracking work in progress):

  • Owner: grafana
  • Repository: grafana
  • Query: is:open draft:true
  • Time field: None

Show open pull requests with a specific label:

  • Owner: grafana
  • Repository: grafana
  • Query: is:open label:priority/high
  • Time field: None

Response

NameDescription
numberPull request number
titlePull request title
urlURL to the pull request
additionsTotal number of lines of code added or altered in the pull request
deletionsTotal number of lines of code removed or altered in the pull request
repositoryRepository for the pull request
stateCan be OPEN, CLOSED, or MERGED
author_nameName of the GitHub user who created the pull request
author_loginGitHub handle of the GitHub user who created the pull request
author_emailEmail address of the GitHub user who created the pull request
author_companyCompany name of the GitHub user who created the pull request
closedWhether the pull request is closed: true or false
is_draftWhether the pull request is in draft: true or false
lockedWhether the pull request has been locked: true or false
mergedWhether the pull request has been merged
mergeableWhether the pull request can be automatically merged: MERGEABLE, CONFLICTING, or UNKNOWN
closed_atWhen the pull request was closed: YYYY-MM-DD HH:MM:SS
merged_atWhen the pull request was merged: YYYY-MM-DD HH:MM:SS
merged_by_nameName of the GitHub user who merged the pull request
merged_by_loginGitHub handle of the GitHub user who merged the pull request
merged_by_emailEmail address of the GitHub user who merged the pull request
merged_by_companyCompany name of the GitHub user who merged the pull request
updated_atWhen the pull request was last updated: YYYY-MM-DD HH:MM:SS
created_atWhen the pull request was created: YYYY-MM-DD HH:MM:SS
open_timeDuration in seconds the pull request has been open
labelsArray of labels assigned to the pull request, for example: ["bug", "priority/high"]

Pull request files

List all files changed in a specific pull request.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Pull Request NumberThe number of the pull requestYes

Response

The response includes one row per changed file:

NameDescription
pathPath of the changed file
additionsNumber of lines added
deletionsNumber of lines deleted
changesTotal number of line changes
statusChange type: added, modified, renamed, etc.
previous_filenameOriginal path for renamed files

Pull request reviews

List reviews for pull requests in a repository. This query returns one row per review, with the associated pull request details included. Useful for tracking review activity, reviewer workload, and review turnaround time.

Query options

NameDescriptionRequired
OwnerA GitHub user or organizationYes
RepositoryThe name of a repositoryNo
QueryUse GitHub’s query syntax to filter resultsNo
Time fieldThe time field to filter the responses on: CreatedAt, ClosedAt, MergedAt, UpdatedAt, or NoneYes
Sample queries

Show all reviews for merged pull requests in the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Query: is:merged
  • Time field: MergedAt

Show reviews for open pull requests (useful for tracking pending review workload):

  • Owner: grafana
  • Repository: grafana
  • Query: is:open
  • Time field: None

Response

NameDescription
pull_request_numberPull request number
pull_request_titlePull request title
pull_request_statePull request state: OPEN, CLOSED, or MERGED
pull_request_urlURL to the pull request
pull_request_author_nameName of the pull request author
pull_request_author_loginGitHub handle of the pull request author
pull_request_author_emailEmail of the pull request author
pull_request_author_companyCompany of the pull request author
repositoryRepository name with owner (for example, grafana/grafana)
review_author_nameName of the reviewer
review_author_loginGitHub handle of the reviewer
review_author_emailEmail of the reviewer
review_author_companyCompany of the reviewer
review_urlURL to the review
review_stateReview state: APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED, or PENDING
review_comment_countNumber of comments in the review
review_updated_atWhen the review was last updated: YYYY-MM-DD HH:MM:SS
review_created_atWhen the review was created: YYYY-MM-DD HH:MM:SS

Releases

List created releases for a repository.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Sample queries

Show all releases for the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana

Response

NameDescription
nameName of release
created_byName of the GitHub user who created the release
is_draftWhether the release is a draft release: true or false
is_prereleaseWhether the release is a pre-release: true or false
tagTag name associated with the release
urlURL for the tag associated with the release
created_atWhen the release was created: YYYY-MM-DD HH:MM:SS
published_atWhen the release was published: YYYY-MM-DD HH:MM:SS

Repositories

List repositories for a user or organization.

Note

This query returns a maximum of 1000 results.

Query options

NameDescriptionRequired
OwnerA GitHub user or organizationYes
RepositoryFilter on the name of the repositoryNo
Sample queries

Show all repositories for the grafana organization:

  • Organization: grafana

Response

NameDescription
nameName of the repository
ownerOrganization or user who owns the repository
name_with_ownerReturns the owner and repository name in the format <OWNER>/<REPOSITORY>, for example: grafana/loki
urlURL for the repository
forksThe number of forks for a repository
is_forkWhether the repository is a fork of another repository: true or false
is_mirrorWhether the repository is a mirror of another repository: true or false
is_privateWhether the repository is private: true or false
created_atWhen the repository was created: YYYY-MM-DD HH:MM:SS

Stargazers

Get a list of users who have starred a repository, including the ability to plot a total count over time.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Sample queries

Show all stargazers for the grafana/grafana repository within the current time range:

  • Owner: grafana
  • Repository: grafana

Response

NameDescription
starred_atWhen the user starred the repository: YYYY-MM-DD HH:MM:SS
star_countCurrent total of stars for the repository at the time of the event
idnode_id – a unique identifier for the GitHub user which can be used in GitHub’s GraphQL API
loginGitHub handle of the user who starred the repository
git_nameName of the GitHub user who starred the repository
companyCompany name of the GitHub user who starred the repository
emailEmail address of the GitHub user who starred the repository
urlURL to the GitHub profile for the user who starred the repository

Tags

List created tags for a repository.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Sample queries

Show all tags created for the grafana/grafana repository within the currently selected time range:

  • Owner: grafana
  • Repository: grafana

Response

NameDescription
nameName of the tag
idSHA for the tag
authorName of the user who created the tag
author_loginGitHub handle of the user who created the tag
author_emailEmail address of the user who created the tag
author_companyCompany name of the user who created the tag
dateWhen the tag was created: YYYY-MM-DD HH:MM:SS

Vulnerabilities

Query security vulnerabilities detected in a repository.

Query options

NameDescriptionRequired
OwnerThe GitHub user or organization that owns the repositoryYes
RepositoryThe name of the repositoryYes
Sample queries

Show all security advisories for the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana

Response

NameDescription
valueCustom field which allows for counting or aggregation, always returns 1
created_atWhen the vulnerability alert was created: YYYY-MM-DD HH:MM:SS
dismissed_atWhen the vulnerability alert was dismissed, if applicable: YYYY-MM-DD HH:MM:SS
dismissReasonReason the vulnerability alert was dismissed (for example, false positive, won’t fix), if applicable
withdrawnAtWhen the advisory was withdrawn, if applicable: YYYY-MM-DD HH:MM:SS
packageNameName of the affected package
advisoryDescriptionDescription of the vulnerability or advisory
firstPatchedVersionThe first version of the package where the vulnerability is fixed
vulnerableVersionRangeThe range of package versions affected by the vulnerability
cvssScoreCVSS (Common Vulnerability Scoring System) score for the vulnerability
cvssVectorCVSS vector string describing the scoring metrics
permalinkURL to the GitHub Security Advisory or alert
severitySeverity level: LOW, MODERATE, HIGH, or CRITICAL
stateState of the vulnerability alert: OPEN, FIXED, or DISMISSED

Workflows

List GitHub Actions workflows defined in a repository.

Query options

NameDescriptionRequired
OwnerGitHub user or organization that owns the repositoryYes
RepositoryName of the repositoryYes
Time fieldThe time field to filter the responses on: None (returns all workflows), CreatedAt, or UpdatedAtYes
Sample queries

Show all workflows in the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Time field: None

Show all workflows created within the grafana/grafana repository within the current time range:

  • Owner: grafana
  • Repository: grafana
  • Time field: CreatedAt

Response

NameDescription
idUnique identifier for the workflow
nameName of the workflow
pathPath to the workflow YAML file in the repository
stateState of the workflow: active, deleted, disabled_fork, disabled_inactivity, or disabled_manually
created_atWhen the workflow was created: YYYY-MM-DD HH:MM:SS
updated_atWhen the workflow was last updated: YYYY-MM-DD HH:MM:SS
urlAPI URL for the workflow
html_urlURL to the workflow file in the repository
badge_urlURL to the workflow status badge

Workflow runs

List runs for a specific workflow, including status, conclusion, and timing information.

Query options

NameDescriptionRequired
OwnerGitHub user or organization that owns the repositoryYes
RepositoryName of the repositoryYes
WorkflowThe workflow ID or file name. Use id or the filename from path from Workflows queries.Yes
BranchThe head branch to filter onNo
Sample queries

Show all completed runs for the Levitate workflow in the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Workflow: detect-breaking-changes-levitate.yml

Show workflow runs for a specific branch (useful for monitoring release branch CI):

  • Owner: grafana
  • Repository: grafana
  • Workflow: ci.yml
  • Branch: release/v12.0.x

Response

NameDescription
idUnique identifier for the workflow run
nameName of the workflow or workflow job
head_branchName of the branch the workflow run was triggered on
head_shaCommit SHA that triggered the workflow run
created_atWhen the workflow run was created: YYYY-MM-DD HH:MM:SS
updated_atWhen the workflow run was last updated: YYYY-MM-DD HH:MM:SS
run_started_atWhen the workflow run started executing: YYYY-MM-DD HH:MM:SS
html_urlURL to the workflow run in the GitHub web UI
urlAPI URL for the workflow run
statusCurrent status: queued, in_progress, completed, waiting, requested, or pending
conclusionFinal conclusion: success, failure, neutral, cancelled, skipped, timed_out, or action_required
eventEvent that triggered the workflow run (for example, push or pull_request). Refer to Events that trigger workflows.
workflow_idUnique identifier for the workflow definition
run_numberThe run number for this workflow run in the repository

Workflow usage

Retrieve usage statistics for a workflow, such as run counts and durations.

Query options

NameDescriptionRequired
OwnerGitHub user or organization that owns the repositoryYes
RepositoryName of the repositoryYes
WorkflowThe workflow ID or file name. Use id or the filename from path from Workflows queries.Yes
Sample queries

Show usage statistics for the Levitate detect breaking changes workflow in the grafana/grafana repository:

  • Owner: grafana
  • Repository: grafana
  • Workflow: detect-breaking-changes-levitate.yml

Response

NameDescription
nameName of the workflow (or workflow job)
unique triggering actorsNumber of unique users or actors who triggered runs of this workflow
runsTotal number of workflow runs in the selected period
current billing cycle cost (approx.)Approximate cost for the current billing cycle (if applicable)
skippedNumber (and percentage) of runs that were skipped
successesNumber (and percentage) of successful runs
failuresNumber (and percentage) of failed runs
cancelledNumber (and percentage) of cancelled runs
total run duration (approx.)Total duration of all runs (formatted as hours, minutes, seconds)
longest run duration (approx.)Duration of the longest single run
average run duration (approx.)Average duration of all runs
p95 run duration (approx.)95th percentile run duration
runs on SundayNumber of runs started on Sunday
runs on MondayNumber of runs started on Monday
runs on TuesdayNumber of runs started on Tuesday
runs on WednesdayNumber of runs started on Wednesday
runs on ThursdayNumber of runs started on Thursday
runs on FridayNumber of runs started on Friday
runs on SaturdayNumber of runs started on Saturday