(after string)
| 230 | } |
| 231 | |
| 232 | func 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 | |
| 270 | func RequiredStatusCheckRollupGraphQL(prID, after string, includeEvent bool) string { |
| 271 | var afterClause string |
no test coverage detected