Skip to content

Commit

Permalink
Added pr-branch support
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcoder committed Oct 25, 2024
1 parent e61f936 commit 53b62e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 53b62e1

Please sign in to comment.