From 53b62e1d4fa61b07d407dd7a74b996e0ef07d849 Mon Sep 17 00:00:00 2001 From: Rohit kumar Date: Sat, 26 Oct 2024 00:46:26 +0530 Subject: [PATCH] Added pr-branch support --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 81eb2d1..c4e830b 100644 --- a/index.js +++ b/index.js @@ -31,17 +31,18 @@ app.post('/git-scan/', async (req, res) => { let job_id = req.body.job_id ? req.body.job_id.toLowerCase() : generateRandomString(5).toLowerCase(); let product_name = req.body.product_name; let branch = req.body.branch; + let pr_branch = req.body.pr_branch; let engagement_name = req.body.engagement_name; - let commit_id = req.body.commit_id; let repository_link = req.body.repository_link; let modules = req.body.modules; let slack_url = req.body.slack_url; let policy_url = req.body.policy_url; let job_args = [ "--code-path=" + repository_link, - "--commit-id=" + commit_id, "--branch=" + branch, + "--pr-branch=" + pr_branch, "--job-id=" + job_id, + "--verbose" ] if (product_name) { job_args.push("--product-name=" + product_name);