MCPcopy Index your code
hub / github.com/cli/cli / StatusCheckRollupGraphQLWithoutCountByState

Function StatusCheckRollupGraphQLWithoutCountByState

api/query_builder.go:232–268  ·  view source on GitHub ↗
(after string)

Source from the content-addressed store, hash-verified

230}
231
232func StatusCheckRollupGraphQLWithoutCountByState(after string) string {
233 var afterClause string
234 if after != "" {
235 afterClause = ",after:" + after
236 }
237 return fmt.Sprintf(shortenQuery(`
238 statusCheckRollup: commits(last: 1) {
239 nodes {
240 commit {
241 statusCheckRollup {
242 contexts(first:100%s) {
243 nodes {
244 __typename
245 ...on StatusContext {
246 context,
247 state,
248 targetUrl,
249 createdAt,
250 description
251 },
252 ...on CheckRun {
253 name,
254 checkSuite{workflowRun{workflow{name}}},
255 status,
256 conclusion,
257 startedAt,
258 completedAt,
259 detailsUrl
260 }
261 },
262 pageInfo{hasNextPage,endCursor}
263 }
264 }
265 }
266 }
267 }`), afterClause)
268}
269
270func RequiredStatusCheckRollupGraphQL(prID, after string, includeEvent bool) string {
271 var afterClause string

Callers 2

preloadPrChecksFunction · 0.92
IssueGraphQLFunction · 0.85

Calls 1

shortenQueryFunction · 0.85

Tested by

no test coverage detected