Merge pull request #649 from actions/per-page
Smaller `per_page` when requesting diff
This commit is contained in:
+2
-1
@@ -264,7 +264,8 @@ function compare({ owner, repo, baseRef, headRef }) {
|
|||||||
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
basehead: `${baseRef}...${headRef}`
|
basehead: `${baseRef}...${headRef}`,
|
||||||
|
per_page: 5
|
||||||
}, response => {
|
}, response => {
|
||||||
if (response.headers[SnapshotWarningsHeader] &&
|
if (response.headers[SnapshotWarningsHeader] &&
|
||||||
typeof response.headers[SnapshotWarningsHeader] === 'string') {
|
typeof response.headers[SnapshotWarningsHeader] === 'string') {
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -31,7 +31,8 @@ export async function compare({
|
|||||||
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
url: '/repos/{owner}/{repo}/dependency-graph/compare/{basehead}',
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
basehead: `${baseRef}...${headRef}`
|
basehead: `${baseRef}...${headRef}`,
|
||||||
|
per_page: 5
|
||||||
},
|
},
|
||||||
response => {
|
response => {
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user