Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dist/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function run() {
const pushToDashboard = core.getBooleanInput('pushToDashboard');
const githubToken = core.getInput('githubToken');
const cloneUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}.git`;
const backslashApi = core.getInput('backslashApi');
const provider = isOnPremise ? 'github-enterprise-on-premise' : 'github';
const repositoryName = github.context.payload.repository.name;
const organization = github.context.payload.organization.login;
Expand All @@ -62,7 +63,7 @@ function run() {
return core.setFailed(`Checksum failed, got ${fetchedHash} but expected ${generatedHash}`);
}
console.log(`Cli sha matches`);
const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly` : ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath}`;
const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly` : ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath} --backslashAPI=${backslashApi}`;
const runCommand = `bash ${cliRunnerFileName} analyze ${commonArgs} ${pushToDashboard ? `--pushToDashboard` : ''}`;
core.debug(`pushToDashboard: ${pushToDashboard}`);
core.debug(`Running this command: ${runCommand}`);
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function run() {
const pushToDashboard = core.getBooleanInput('pushToDashboard');
const githubToken = core.getInput('githubToken');
const cloneUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}.git`;
const backslashApi = core.getInput('backslashApi');
const provider = isOnPremise ? 'github-enterprise-on-premise' : 'github';
const repositoryName = github.context.payload.repository.name;
const organization = github.context.payload.organization.login;
Expand All @@ -69,7 +70,7 @@ function run() {
return core.setFailed(`Checksum failed, got ${fetchedHash} but expected ${generatedHash}`);
}
console.log(`Cli sha matches`);
const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly` : ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath}`;
const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly` : ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath} --backslashAPI=${backslashApi}`;
const runCommand = `bash ${cliRunnerFileName} analyze ${commonArgs} ${pushToDashboard ? `--pushToDashboard` : ''}`;
core.debug(`pushToDashboard: ${pushToDashboard}`);
core.debug(`Running this command: ${runCommand}`);
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async function run() {
const pushToDashboard: boolean = core.getBooleanInput('pushToDashboard');
const githubToken = core.getInput('githubToken')
const cloneUrl = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}.git`
const backslashApi = core.getInput('backslashApi')

const provider = isOnPremise ? 'github-enterprise-on-premise' : 'github'

Expand Down Expand Up @@ -68,7 +69,7 @@ async function run() {
}
console.log(`Cli sha matches`);

const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly`: ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath}`
const commonArgs = `--authToken=${authToken} ${ignoreBlock ? `--warnOnly`: ''} --deltaScan=${prScan} --analyzedBranch=${analyzedBranch} --repositoryCloneUrl=${cloneUrl} --provider=${provider} --gitProviderOrganization=${organization} ${baselineBranch && `--baselineBranch=${baselineBranch} `} ${githubExtraInput} --outputPath=${outputPath} --backslashAPI=${backslashApi}`

const runCommand = `bash ${cliRunnerFileName} analyze ${commonArgs} ${pushToDashboard ? `--pushToDashboard` : ''}`

Expand Down