This commit is contained in:
Andras Bacsai
2022-07-25 11:08:09 +00:00
parent dd2a876a67
commit e47395bab7
4 changed files with 6 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ export async function gitHubEvents(request: FastifyRequest<GitHubEvents>): Promi
projectId = repository.id;
branch = body.pull_request.head.ref.split('/')[2];
}
console.log({repository, projectId, branch})
const applicationFound = await getApplicationFromDBWebhook(projectId, branch);
if (applicationFound) {
const webhookSecret = applicationFound.gitSource.githubApp.webhookSecret || null;