(commits, options = {})
| 36 | } |
| 37 | |
| 38 | function page(commits, options = {}) { |
| 39 | return { |
| 40 | repository: { |
| 41 | pullRequest: { |
| 42 | title: "fix: keep CI running", |
| 43 | baseRefOid: commit(900).oid, |
| 44 | headRefOid: commits.length ? commits[commits.length - 1].oid : commit(1).oid, |
| 45 | ...options, |
| 46 | commits: { |
| 47 | totalCount: commits.length, |
| 48 | nodes: commits.map((entry) => ({ commit: entry })), |
| 49 | pageInfo: { hasNextPage: false, endCursor: null }, |
| 50 | ...options.commits, |
| 51 | }, |
| 52 | }, |
| 53 | }, |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | function client(pages, comparisons = []) { |
| 58 | const calls = []; |
no test coverage detected