gazebo
gazebo copied to clipboard
feat: Update commit graphql queries to use new coverage and bundleAna…
…lysis schemas
Description
Closes https://github.com/codecov/engineering-team/issues/2285 Related to changes made in api at https://github.com/codecov/codecov-api/pull/847 - TLDR: following fields in the Commit.graphql type were pulled out into another subtype.
components
, flagNames
, coverageFile
and totals
were moved down one level into coverageAnalytics
bundleAnalysisCompareWithParent
and bundleAnalysisReport
were moved down one level into bundleAnalysis
.
The only changes made in this PR are adding in an extra level of nesting for these 6 fields in the Commit
type.
Made changes to
- type Repository's
commit
- type Branch's
head
- type Commit's
parent
- and type Pull's
head
, as they are all of typeCommit
, and their uses across the codebase.
*Type Pull's comparedTo
did not use any of those fields so did not need any changes even though it is also of type Commit
.
Code Example
Notable Changes
Screenshots
Link to Sample Entry
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.