GitHub: why checks are gone from an older pull request
By default, checks, workflow runs, commit statuses, and the artifacts and log files generated by workflows are retained for 90 days before they are automatically deleted. Starting October 1, 2026, the retention policies apply to checks, workflow runs and commit statuses in addition to artifacts and logs; until then, those were retained for 400 days or more regardless of the configured period (GitHub's retention period for a repository, checked October 27, 2026). After the period, the checks data is permanently deleted (GitHub's retention of checks).
default 90 days, then deleted public repositories 1 to 90 days private repositories 1 to 400 days since October 1, 2026 checks, workflow runs and commit statuses too re-running a workflow run up to 30 days after its initial run
What is deleted
- Checks and statuses from every source: the policies cover check suites and check runs, and commit statuses, including those created by third-party integrations. They are not limited to data created by GitHub Actions.
- The head commit of a quiet pull request: on a pull request that has had no new commit for longer than the retention period, the checks and statuses reported on its head commit more than that period ago are among the data deleted.
- No re-run of an old run: a workflow run, its failed jobs or a specific job can be re-run up to 30 days after its initial run (GitHub's re-running workflows and jobs).
- Deleted by hand: anyone with write access can delete a workflow run that has been completed or is more than two weeks old, with Delete workflow run in the run's menu on the Actions tab or with
gh run delete RUN_ID(GitHub's deleting a workflow run and GitHub CLI's gh run delete). All artifacts of a deleted run are deleted from storage with it (GitHub's artifacts from deleted workflow runs). Delete all logs in a run's menu removes its log files, and the button goes away when no log files remain (GitHub's deleting logs). - Deleting runs and logs through the API: DELETE
/repos/OWNER/REPO/actions/runs/RUN_IDdeletes a workflow run and answers 204; anyone with write access to the repository can use it. DELETE/repos/OWNER/REPO/actions/runs/RUN_ID/logsdeletes all logs for the run and answers 204, or 403 or 500. On a fine-grained token, both need the Actions repository permission (write) (GitHub's delete a workflow run and delete workflow run logs).
To see which required checks have not reported: Pull Request Inbox for GitHub, a plugin for JetBrains IDEs, names each required check that has not reported on the head commit, when the branch's rules hold the merge back.
Changing the period
- For a repository: Settings, Actions, General, then under Check, workflow run, status, artifact and log retention enter a new value and save. A public repository takes 1 to 90 days, a private repository 1 to 400 days.
- Through the API: GET
/repos/OWNER/REPO/actions/permissions/artifact-and-log-retentionreturnsdaysandmaximum_allowed_days; PUT on the same address withdayssets the period and answers 204, or 422 when validation fails. The setting covers checks, which include check suites, check runs and check annotations, as well as workflow runs, commit statuses, artifacts and logs; OAuth app tokens and personal access tokens (classic) need thereposcope (GitHub's REST API endpoints for GitHub Actions permissions). - Tokens for the retention setting: on a fine-grained token, reading the repository setting needs the Administration repository permission (read), and setting it needs (write) (GitHub's set artifact and log retention settings for a repository). For an organization, GET and PUT on
/orgs/ORG/actions/permissions/artifact-and-log-retentionneed theadmin:orgscope or the Actions policies fine-grained permission on OAuth app tokens and personal access tokens (classic), and the Administration organization permission, read to get and write to set, on fine-grained tokens. The PUT answers 204, or 409 Conflict or 422 (GitHub's set artifact and log retention settings for an organization). - For an organization: the same setting is in the organization settings, and in managed repositories and organizations the period cannot exceed the limit set by the managing organization or enterprise (GitHub's retention period for an organization).
- Only for what comes next: a new value applies to new checks, workflow runs, commit statuses, artifacts and logs, and does not apply retroactively to existing ones.
- For one artifact:
retention-dayson theactions/upload-artifactaction gives an artifact its own retention period, for example 5 days; the value cannot exceed the retention limit set by the repository, organization or enterprise (GitHub's configuring a custom artifact retention period). - A link to an artifact: the
artifact-urloutput ofactions/upload-artifact, which can link to the artifact from issues or pull requests, works only for users who are logged in, and only as long as the artifact has not expired and the artifact, run or repository has not been deleted.retention-days: 0means the default retention (the actions/upload-artifact README).
What to do
- Run the checks again: by default a
pull_requestworkflow runs when the head branch of the pull request is updated, so a new commit or an update from the base branch brings fresh checks (GitHub's pull_request). - Keep results longer: in a private repository, raise the period up to 400 days before the results you need are made; a public repository keeps them for 90 days at most.
- Keep a copy before it goes: with read access, open a job's log, select the gear menu in its upper right corner, then Download log archive. For a workflow that was partially re-run, the archive only includes the jobs that were re-run, so download the archives of the earlier attempts too (GitHub's downloading logs). From the command line,
gh run view --job JOB_ID --logprints a job's log, and--log-failedonly the failed steps (GitHub's viewing logs with GitHub CLI). - Keeping the logs through the API: GET
/repos/OWNER/REPO/actions/runs/RUN_ID/logsanswers 302 Found with a redirect URL for an archive of the run's log files in theLocationheader, and the link expires after 1 minute; GET/repos/OWNER/REPO/actions/runs/RUN_ID/attempts/ATTEMPT_NUMBER/logsdoes the same for one attempt. Anyone with read access to the repository can use them, and a fine-grained token needs the Actions repository permission (read) (GitHub's download workflow run logs and download workflow run attempt logs). - When an artifact expires:
GET /repos/OWNER/REPO/actions/runs/RUN_ID/artifactslists a run's artifacts withexpires_atandexpired, and anyone with read access to the repository can use it. Downloading one answers with a redirect whose URL expires after 1 minute; GitHub documents 410 (Gone) for the download (GitHub's REST API endpoints for artifacts).
In IntelliJ IDEA: no checks, no checks line
Checked in the IntelliJ IDEA source on November 2, 2026: CodeReviewDetailsStatusComponentFactory.kt, GHPRStatusViewModel.kt, GHPRMergeabilityStateBuilder.kt.
The checks line of a pull request is shown only while its list of checks is not empty:
bindVisibilityIn(scope, ciJobs.map { it.isNotEmpty() })
The list holds the commit statuses and check runs of the pull request's last commit (GitHub: why the checks do not show). Once the retention period has deleted them from that commit, the list is empty, and neither the line nor its Details… link appears.
As above, new checks run when the head branch gets a new commit. From the IDE, that means pushing one: it has no request that runs a check again (GitHub: a check on the pull request was cancelled) and none that updates the branch on GitHub (GitHub: the Update branch button does not show on a pull request).
GitHub pull requests in IntelliJ IDEA
Pull Request Inbox for GitHub, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a pull request's reviews, checks and conversations next to the diff, and merges it with the methods the target branch allows. It lists the checks GitHub reports on the head commit when it reads them, so checks GitHub has deleted are not among them, and when the branch rules hold the merge back it names each required check that has not reported on that commit. When the target branch has new commits, updating the branch (Pro) merges them in through GitHub, which gives the pull request a new head commit. The review inbox, diffs and conversations are free; approving, commenting, resolving, merging and updating the branch are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitHub, Inc. or JetBrains.
More: GitHub merge refused (405, 409) · GitHub review refused (422) · GitHub search 422 "Validation Failed" · "Resource not accessible by personal access token" · 401 "Bad credentials" · "Resource protected by organization SAML enforcement" · "API rate limit exceeded" · GitHub diff 406 "too_large", 3,000 files · GitHub line comment 422 "must be part of the diff" · GitHub branch update refused (422) · GitHub pull request not created (422, 403) · GitHub auto-merge refused · GitHub draft, ready for review or close refused · GitHub conversation not resolved · GitHub checks not shown (check runs 403) · GitHub file contents not read · GitHub compare refused (404, 422) · GitHub comment or reply refused (403 locked, archived) · GitHub merge method not allowed (405) · GitHub branch not found (404, 301) · GitHub Enterprise Server not reached · GitHub review request not shown · GitHub pull request list incomplete · GitHub 404 Not Found, renamed repositories (301, 307) · GitHub line comment outdated or not on the diff · GitHub pull requests not updating, notifications late · GitHub suggested change cannot be applied · GitHub required check stuck at "Expected" · GitHub code owner review required · GitHub merge blocked by unresolved conversations · GitHub merge blocked by unsigned commits · GitHub branch that merges through a merge queue · GitHub merge waiting for an approval of the most recent push · GitHub merge waiting for code scanning results · GitHub merge waiting for code quality results · GitHub merge blocked by a code coverage threshold · GitHub merge blocked by license compliance results · GitHub branch locked or its updates restricted · GitHub branch not deleted after merging · GitHub merge waiting for a team's approval (Required reviewers) · GitHub merge blocked by secret scanning alerts · GitHub stacked pull request not merging · GitHub push blocked by push rules · GitHub merge blocked by commit metadata rules · GitHub force push blocked · GitHub issue not closed by a merged pull request · GitHub pull request not checked out locally · GitHub pull request has merge conflicts · GitHub changes requested and dismissing a review · GitHub co-author not credited for a commit · GitHub dependency review check failed · GitHub Dependabot not rebasing its pull request · GitHub fork not syncing with upstream · GitHub pull request base branch not changing · GitHub pull request not reverting · GitHub pull request template not showing · GitHub pull request labels or assignees not added · GitHub pull request not closing or reopening · GitHub push blocked by push protection · GitHub pull request comment hidden · GitHub pull request blocked until deployments succeed · GitHub team review request replaced by members · GitHub pull request file no longer marked Viewed · GitHub pull request marked merged without being merged · GitHub Copilot review does not count as an approval · GitHub checks not running on a pull request a workflow created · GitHub Update branch button not shown on a pull request · GitHub checks failing on a Dependabot pull request · GitHub checks failing on a pull request from a fork · GitHub checks skipped by [skip ci] in a commit message · GitHub code review limits in a public repository · GitHub pull requests turned off or limited in a repository · GitHub checks run on every pull request in a stack · GitHub pull request showing commits already squash merged · GitHub pull request not showing a file diff · GitHub push to a pull request branch from a fork refused · GitHub check cancelled on a pull request · GitHub Rebase and merge not available · GitHub merge commit message not what you expected · GitHub pull request shows every line changed · GitHub API request timed out · GitHub pull request image or document diff not shown · GitHub review request refused (422) · GitHub pull request from Copilot: checks not running, approval not counted · GitHub push refused: GH006 and GH013 on a protected branch · GitHub "At least 1 approving review is required", approvals that do not count · GitHub pull request plugins for IntelliJ IDEA, compared · 日本語