Skip to content

Commit

Permalink
feat: Log workflow id in webhook (#2511)
Browse files Browse the repository at this point in the history
feat: added workflow id.

Co-authored-by: navdeepg2021 <navdeepg2021@gmail.com>
  • Loading branch information
GuptaNavdeep1983 and navdeepg2021 committed Oct 11, 2022
1 parent bb929bd commit 204acf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/webhook/lambdas/webhook/src/webhook/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export async function handle(headers: IncomingHttpHeaders, body: string): Promis
LogFields.fields.action = payload.action;
LogFields.fields.name = payload[githubEvent].name;
LogFields.fields.status = payload[githubEvent].status;
LogFields.fields.workflowJobId = payload[githubEvent].id;
LogFields.fields.started_at = payload[githubEvent]?.started_at;

/*
Expand Down

0 comments on commit 204acf1

Please sign in to comment.