Introduce parameter object for API params that travel together

This commit is contained in:
Sam Partington 2020-11-23 14:18:05 +00:00
parent b15854c9af
commit 20567b5888
36 changed files with 247 additions and 253 deletions

View file

@ -153,8 +153,10 @@ program
codeql = (
await initCodeQL(
undefined,
cmd.githubAuth,
parseGithubUrl(cmd.githubUrl),
{
auth: cmd.githubAuth,
url: parseGithubUrl(cmd.githubUrl),
},
tempDir,
toolsDir,
"runner",
@ -172,8 +174,10 @@ program
toolsDir,
codeql,
cmd.checkoutPath || process.cwd(),
cmd.githubAuth,
parseGithubUrl(cmd.githubUrl),
{
auth: cmd.githubAuth,
url: parseGithubUrl(cmd.githubUrl),
},
"runner",
logger
);
@ -371,8 +375,10 @@ program
undefined,
cmd.checkoutPath || process.cwd(),
undefined,
cmd.githubAuth,
parseGithubUrl(cmd.githubUrl),
{
auth: cmd.githubAuth,
url: parseGithubUrl(cmd.githubUrl),
},
cmd.upload,
"runner",
outputDir,
@ -438,8 +444,10 @@ program
undefined,
cmd.checkoutPath || process.cwd(),
undefined,
cmd.githubAuth,
parseGithubUrl(cmd.githubUrl),
{
auth: cmd.githubAuth,
url: parseGithubUrl(cmd.githubUrl),
},
"runner",
logger
);