Skip to content

Commit

Permalink
feat/slack set repoName and branchName from build hook payload
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Nov 21, 2024
1 parent 8362691 commit 31d1835
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extensions/populate-metadata/src/updateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ export const updateConfig = async ({

// TODO: DOP-5201, Branch name and repo name to deploy sent as values in Build Hook payload if in dotcomprd or dotcomstg environments
console.log(`incoming hook body ${configEnvironment?.INCOMING_HOOK_BODY}`);
[branchName, repoName] = configEnvironment?.INCOMING_HOOK_BODY?.split(
'',
) as string[];
repoName = configEnvironment?.INCOMING_HOOK_BODY?.repoName;
branchName = configEnvironment?.INCOMING_HOOK_BODY?.branchName;
process.env.BRANCH_NAME = branchName;
process.env.REPO_NAME = repoName;
console.log(branchName, repoName);
Expand Down

0 comments on commit 31d1835

Please sign in to comment.