Skip to content

Fix cancelled-only PR checks summary - #13683

Closed
PRIEYAN wants to merge 1 commit into
cli:trunkfrom
PRIEYAN:fix-cancelled-check-summary
Closed

Fix cancelled-only PR checks summary#13683
PRIEYAN wants to merge 1 commit into
cli:trunkfrom
PRIEYAN:fix-cancelled-check-summary

Conversation

@PRIEYAN

@PRIEYAN PRIEYAN commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Fixes a bug where gh pr checks prints a blank summary when all check runs are cancelled.

The summary guard did not include counts.Canceled, causing the cancelled-only case to skip the summary output entirely.

Changes

  • Include counts.Canceled in the summary guard condition.
  • Add a regression test for cancelled-only check runs.
  • Add fixture data for the cancelled-only scenario.

Testing

go test ./pkg/cmd/pr/checks/...

Fixes #13680

@PRIEYAN
PRIEYAN requested a review from a team as a code owner June 18, 2026 17:07
@PRIEYAN
PRIEYAN requested a review from BagToad June 18, 2026 17:07
@github-actions github-actions Bot added external pull request originating outside of the CLI core team needs-triage needs to be reviewed unmet-requirements and removed needs-triage needs to be reviewed labels Jun 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request! Unfortunately, it doesn't meet the requirements for review:

  • None of the referenced issues have the help wanted label

Please update your PR to address the above. This PR will be automatically closed in 4 days if these requirements are not met.

Full contribution requirements
  1. Include a detailed description of what this PR does
  2. Link to an issue with the help wanted label (use Fixes #123 or Closes #123)

@babakks

babakks commented Jun 22, 2026

Copy link
Copy Markdown
Member

Thanks for the PR, @PRIEYAN, but I'm closing this as there was a PR before this and it's now merged.

Closing this as the issue is already fixed in #13679.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team unmet-requirements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh pr checks: blank summary when all checks were cancelled

2 participants