mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
feat: edit existing messages for workflow run updates
This commit is contained in:
parent
4b3f5189a8
commit
78f0a4e28a
8 changed files with 187 additions and 16 deletions
|
|
@ -100,6 +100,7 @@ export function formatWorkflowRun(
|
|||
showEmoji: boolean,
|
||||
): NeutralMessage {
|
||||
const workflow = payload.workflow_run as {
|
||||
id?: number;
|
||||
name?: string;
|
||||
conclusion?: string;
|
||||
html_url?: string;
|
||||
|
|
@ -183,6 +184,8 @@ export function formatWorkflowRun(
|
|||
url: workflow.html_url,
|
||||
color: GITHUB_COLORS[colorKey],
|
||||
fields,
|
||||
updateKey:
|
||||
repo && workflow.id != null ? `workflow_run:${repo}:${workflow.id}` : undefined,
|
||||
},
|
||||
t,
|
||||
repo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue