Skip to content

Commit

Permalink
Update github.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
GuruPKK committed Mar 9, 2022
1 parent c89f96c commit 279a60b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/controllers/v1/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ async function prepGithubPushPayload(githubEvent: any, branchRepository: BranchR
const branch_name = githubEvent.ref.split('/')[2];
const branch_info = await branchRepository.getRepoBranchAliases(githubEvent.repository.name, branch_name);
const urlSlug = branch_info.aliasObject?.urlSlug ?? branch_name;
const repo_info = await branchRepository.getRepo(githubEvent.repository.name);
const project = repo_info.project;

return {
title: githubEvent.repository.full_name,
Expand All @@ -46,6 +48,7 @@ async function prepGithubPushPayload(githubEvent: any, branchRepository: BranchR
newHead: githubEvent.after,
urlSlug: urlSlug,
prefix: prefix,
project: project,
},
logs: [],
};
Expand Down

0 comments on commit 279a60b

Please sign in to comment.