MCPcopy Create free account
hub / github.com/alibaba/open-code-review / page

Function page

scripts/github-actions/check-pr-commit-policy.test.js:38–55  ·  view source on GitHub ↗
(commits, options = {})

Source from the content-addressed store, hash-verified

36}
37
38function 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
57function client(pages, comparisons = []) {
58 const calls = [];

Callers 4

comparisonFixtureFunction · 0.85
sidebarMethod · 0.85
configPanelMethod · 0.85

Calls 1

commitFunction · 0.85

Tested by

no test coverage detected