Skip to content

Fix showing Checks information in pr status#3804

Merged
mislav merged 3 commits intotrunkfrom
pr-status-checks
Jun 11, 2021
Merged

Fix showing Checks information in pr status#3804
mislav merged 3 commits intotrunkfrom
pr-status-checks

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Jun 8, 2021

An outdated GraphQL query was used in pr status to fetch Checks. It was technically valid, so it didn't error out on the server, but its results around Checks were not stored in a way that caused them to also be rendered.

This switches to PullRequestGraphQL() to build GraphQL queries, which is also used across the codebase, instead of manually rolling potentially error-prone queries by hand.

Fixes #3794
Followup to #3547

This was a regression in how `statusCheckRollup` is queried and stored.
As a result, `gh pr status` did not include rendered information about
checks related to each pull request. This switches the query builder to
`PullRequestGraphQL()` to eliminate the outdated query.
@mislav mislav requested a review from samcoe June 10, 2021 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh pr status doesn't show checks after update

2 participants