Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 279a60b

Browse files
committed
Update github.ts
1 parent c89f96c commit 279a60b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/controllers/v1/github.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ async function prepGithubPushPayload(githubEvent: any, branchRepository: BranchR
2020
const branch_name = githubEvent.ref.split('/')[2];
2121
const branch_info = await branchRepository.getRepoBranchAliases(githubEvent.repository.name, branch_name);
2222
const urlSlug = branch_info.aliasObject?.urlSlug ?? branch_name;
23+
const repo_info = await branchRepository.getRepo(githubEvent.repository.name);
24+
const project = repo_info.project;
2325

2426
return {
2527
title: githubEvent.repository.full_name,
@@ -46,6 +48,7 @@ async function prepGithubPushPayload(githubEvent: any, branchRepository: BranchR
4648
newHead: githubEvent.after,
4749
urlSlug: urlSlug,
4850
prefix: prefix,
51+
project: project,
4952
},
5053
logs: [],
5154
};

0 commit comments

Comments
 (0)