Skip to content

feat(shared): add workflow_run event summary fields#108

Merged
liplus-lin-lay merged 1 commit into
mainfrom
94-add-workflow_run-event-support-to-worker
Mar 30, 2026
Merged

feat(shared): add workflow_run event summary fields#108
liplus-lin-lay merged 1 commit into
mainfrom
94-add-workflow_run-event-support-to-worker

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

Refs #94

workflow_run イベントの EventSummary に head_branch, head_sha, conclusion フィールドを追加。
worker は既に全 webhook イベントを汎用的に受信・保存しており、summarizeEvent の eventTitle / eventUrl でも workflow_run.name / html_url を抽出済みだったが、CI/CD 判定に必要な固有フィールドが欠落していた。
extractWorkflowRunField ヘルパーを追加し、workflow_run イベント時のみ値を返す。他イベントでは null。

workflow_run イベントのサマリーに head_branch, head_sha, conclusion フィールドを追加。
worker は既に全 webhook イベントを汎用的に受信・保存しているが、summarizeEvent で
workflow_run 固有のフィールドが欠落していた。EventSummary 型に3フィールドを追加し、
extractWorkflowRunField ヘルパーで workflow_run イベント時のみ値を抽出する。
他のイベントタイプでは null を返す。

Refs #94
@liplus-lin-lay liplus-lin-lay linked an issue Mar 30, 2026 that may be closed by this pull request
@liplus-lin-lay liplus-lin-lay enabled auto-merge (squash) March 30, 2026 04:57
@liplus-lin-lay liplus-lin-lay merged commit 2451605 into main Mar 30, 2026
2 checks passed
@liplus-lin-lay liplus-lin-lay deleted the 94-add-workflow_run-event-support-to-worker branch March 30, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add workflow_run event support to worker

1 participant