Skip to content
Snippets Groups Projects
Commit 3841f29b authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: request 100 results per page (gitlab) (#972)

parent ffef63f4
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ async function getFileList(branchName) { ...@@ -129,7 +129,7 @@ async function getFileList(branchName) {
return config.fileList; return config.fileList;
} }
const res = await get( const res = await get(
`projects/${config.repoName}/repository/tree?ref=${branchName}&recursive=true`, `projects/${config.repoName}/repository/tree?ref=${branchName}&recursive=true&per_page=100`,
{ paginate: true } { paginate: true }
); );
config.fileList = res.body config.fileList = res.body
...@@ -344,7 +344,7 @@ async function addLabels(prNo, labels) { ...@@ -344,7 +344,7 @@ async function addLabels(prNo, labels) {
async function findPr(branchName, prTitle, state = 'all') { async function findPr(branchName, prTitle, state = 'all') {
logger.debug(`findPr(${branchName}, ${prTitle}, ${state})`); logger.debug(`findPr(${branchName}, ${prTitle}, ${state})`);
const urlString = `projects/${config.repoName}/merge_requests?state=${state}`; const urlString = `projects/${config.repoName}/merge_requests?state=${state}&per_page=100`;
const res = await get(urlString); const res = await get(urlString);
let pr = null; let pr = null;
res.body.forEach(result => { res.body.forEach(result => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment