Skip to content

Commit

Permalink
SIGINT-1116: Branch name is not coming properly on Polaris UI (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
spurohitsynopsys authored Sep 13, 2023
1 parent 0df0364 commit 8afdc31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ class SynopsysToolsParameter {
const githubToken = inputs.GITHUB_TOKEN;
const githubRepo = process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REPOSITORY];
const githubRepoName = githubRepo !== undefined ? githubRepo.substring(githubRepo.indexOf('/') + 1, githubRepo.length).trim() : '';
const githubBranchName = process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF_NAME];
const githubBranchName = (0, utility_1.parseToBoolean)(inputs.POLARIS_PRCOMMENT_ENABLED) ? process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_HEAD_REF] : process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF_NAME];
const githubRef = process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF];
const githubAPIURL = process.env[blackduck_1.FIXPR_ENVIRONMENT_VARIABLES.GITHUB_API_URL];
// pr number will be part of "refs/pull/<pr_number>/merge"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/synopsys-action/tools-parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export class SynopsysToolsParameter {
const githubToken = inputs.GITHUB_TOKEN
const githubRepo = process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REPOSITORY]
const githubRepoName = githubRepo !== undefined ? githubRepo.substring(githubRepo.indexOf('/') + 1, githubRepo.length).trim() : ''
const githubBranchName = process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF_NAME]
const githubBranchName = parseToBoolean(inputs.POLARIS_PRCOMMENT_ENABLED) ? process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_HEAD_REF] : process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF_NAME]
const githubRef = process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_REF]
const githubAPIURL = process.env[FIXPR_ENVIRONMENT_VARIABLES.GITHUB_API_URL]

Expand Down

0 comments on commit 8afdc31

Please sign in to comment.