Skip to content

Commit 53b62e1

Browse files
committed
Added pr-branch support
1 parent e61f936 commit 53b62e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@ app.post('/git-scan/', async (req, res) => {
3131
let job_id = req.body.job_id ? req.body.job_id.toLowerCase() : generateRandomString(5).toLowerCase();
3232
let product_name = req.body.product_name;
3333
let branch = req.body.branch;
34+
let pr_branch = req.body.pr_branch;
3435
let engagement_name = req.body.engagement_name;
35-
let commit_id = req.body.commit_id;
3636
let repository_link = req.body.repository_link;
3737
let modules = req.body.modules;
3838
let slack_url = req.body.slack_url;
3939
let policy_url = req.body.policy_url;
4040
let job_args = [
4141
"--code-path=" + repository_link,
42-
"--commit-id=" + commit_id,
4342
"--branch=" + branch,
43+
"--pr-branch=" + pr_branch,
4444
"--job-id=" + job_id,
45+
"--verbose"
4546
]
4647
if (product_name) {
4748
job_args.push("--product-name=" + product_name);

0 commit comments

Comments
 (0)