From 14d61be06554f5b03977b4e62ca6cfc991fc386c Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:11:42 +0100 Subject: [PATCH] Finish templates --- templates/deployment_protection_rule.js | 2 +- templates/issues.js | 106 ++++++++++-------- templates/member.js | 2 +- templates/organization.js | 8 +- templates/page_build.js | 2 +- templates/projects_v2_item.js | 31 ++--- templates/pull_request.js | 143 ++++++++++++++---------- templates/status.js | 2 +- templates/team.js | 2 +- templates/workflow_dispatch.js | 4 +- 10 files changed, 166 insertions(+), 136 deletions(-) diff --git a/templates/deployment_protection_rule.js b/templates/deployment_protection_rule.js index caac5d3..7f9541e 100644 --- a/templates/deployment_protection_rule.js +++ b/templates/deployment_protection_rule.js @@ -11,7 +11,7 @@ module.exports = [ }, title: "[{{ repository.name }}] Deployment protection rule requested by {{ event }}", url: "{{ repository.html_url }}", - color: color("black") + color: color("gray") }] } ] diff --git a/templates/issues.js b/templates/issues.js index e38c113..d8efe30 100644 --- a/templates/issues.js +++ b/templates/issues.js @@ -9,9 +9,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`assigned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** assigned to **{{ assignee.login }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("cyan") }] },{ action: "closed", @@ -21,9 +22,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`closed`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** closed", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("green") }] },{ action: "deleted", @@ -33,8 +35,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`deleted`)", - url: "{{ repository.html_url }}", + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** deleted", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", color: color("red") }] },{ @@ -45,9 +48,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`demilestoned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** removed from milestone **{{ milestone.title }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("cyan") }] },{ action: "edited", @@ -57,8 +61,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`edited`)", - url: "{{ repository.html_url }}", + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** edited", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", color: color("cyan") }] },{ @@ -69,8 +74,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`labeled`)", - url: "{{ repository.html_url }}", + title: "[{{ repository.name }}] Label {{ label.name }} added to issue **#{{ issue.number }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", color: color("cyan") }] },{ @@ -81,9 +87,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`locked`)", - url: "{{ repository.html_url }}", - color: color("gray") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** locked", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("magenta") }] },{ action: "milestoned", @@ -93,9 +100,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`milestoned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** added to milestone **{{ milestone.title }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("cyan") }] },{ action: "opened", @@ -105,9 +113,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`opened`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** opened", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("blue") }] },{ action: "pinned", @@ -117,9 +126,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`pinned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** pinned", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("magenta") }] },{ action: "reopened", @@ -129,9 +139,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`reopened`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** reopened", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("red") }] },{ action: "transferred", @@ -141,9 +152,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`transferred`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** transferred", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("gray") }] },{ action: "unassigned", @@ -153,9 +165,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`unassigned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Assignee removed from issue **#{{ issue.number }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("cyan") }] },{ action: "unlabeled", @@ -165,9 +178,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`unlabeled`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Label {{ label.name }} removed from issue **#{{ issue.number }}**", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("cyan") }] },{ action: "unlocked", @@ -177,9 +191,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`unlocked`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** unlocked", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("magenta") }] },{ action: "unpinned", @@ -189,9 +204,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `issues` (`unpinned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Issue **#{{ issue.number }}** unpinned", + url: "{{ issue.html_url }}", + description: "{{ issue.title }}", + color: color("magenta") }] } ] diff --git a/templates/member.js b/templates/member.js index 7dc9cbd..0123a52 100644 --- a/templates/member.js +++ b/templates/member.js @@ -44,7 +44,7 @@ module.exports = [ thumbnail: { url: "{{ member.avatar_url }}" }, - color: color("black") + color: color("red") }] } ] diff --git a/templates/organization.js b/templates/organization.js index 2521bd8..54b0962 100644 --- a/templates/organization.js +++ b/templates/organization.js @@ -22,7 +22,7 @@ module.exports = [ }, title: "[{{ organization.name }}] **{{ member.user.login }}** added to organization", url: "{{ organization.html_url }}", - color: color("black") + color: color("green") }] },{ action: "member_invited", @@ -34,7 +34,7 @@ module.exports = [ }, title: "[{{ organization.name }}] **{{ invitation.login || invitation.email }}** invited to organization", url: "{{ organization.html_url }}", - color: color("black") + color: color("gray") }] },{ action: "member_removed", @@ -46,7 +46,7 @@ module.exports = [ }, title: "[{{ organization.name }}] **{{ member.user.login }}** removed from organization", url: "{{ organization.html_url }}", - color: color("black") + color: color("red") }] },{ action: "renamed", @@ -58,7 +58,7 @@ module.exports = [ }, title: "Organization renamed from **{{ changes.login.from }}** to **{{ organization.name }}**", url: "{{ organization.html_url }}", - color: color("black") + color: color("cyan") }] } ] diff --git a/templates/page_build.js b/templates/page_build.js index db5d9a8..c2ce092 100644 --- a/templates/page_build.js +++ b/templates/page_build.js @@ -10,7 +10,7 @@ module.exports = [ }, title: "[{{ repository.name }}] Page build {{ build.status }}", url: "{{ build.url }}", - color: color("black") + color: color("magenta") }] } ] diff --git a/templates/projects_v2_item.js b/templates/projects_v2_item.js index fbb3b7d..d4a2e0f 100644 --- a/templates/projects_v2_item.js +++ b/templates/projects_v2_item.js @@ -1,6 +1,6 @@ const color = require("../util/color.js") -module.exports = [ +module.exports = [ // TODO: Fetch project name & item data from GitHub using projects_v2_item.project_node_id / projects_v2_item.content_node_id { action: "archived", embeds: [{ @@ -9,9 +9,8 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`archived`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "Project item archived", + color: color("gray") }] },{ action: "converted", @@ -21,9 +20,8 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`converted`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "Project item converted", + color: color("green") }] },{ action: "created", @@ -33,8 +31,7 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`created`)", - url: "{{ repository.html_url }}", + title: "Project item created", color: color("green") }] },{ @@ -45,8 +42,7 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`deleted`)", - url: "{{ repository.html_url }}", + title: "Project item deleted", color: color("red") }] },{ @@ -57,8 +53,7 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`edited`)", - url: "{{ repository.html_url }}", + title: "Project item edited", color: color("cyan") }] },{ @@ -69,9 +64,8 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`reordered`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "Project item reordered", + color: color("cyan") }] },{ action: "restored", @@ -81,9 +75,8 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `projects_v2_item` (`restored`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "Project item restored", + color: color("magenta") }] } ] diff --git a/templates/pull_request.js b/templates/pull_request.js index 1f78d70..e7df45a 100644 --- a/templates/pull_request.js +++ b/templates/pull_request.js @@ -9,9 +9,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`assigned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** assigned to **{{ assignee.login }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "auto_merge_disabled", @@ -21,9 +22,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`auto_merge_disabled`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Auto merge disabled for **{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("red") }] },{ action: "auto_merge_enabled", @@ -33,9 +35,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`auto_merge_enabled`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Auto merge enabled for **{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("green") }] },{ action: "closed", @@ -45,9 +48,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`closed`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** closed", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("red") }] },{ action: "converted_to_draft", @@ -57,9 +61,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`converted_to_draft`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** converted to draft", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("gray") }] },{ action: "demilestoned", @@ -69,9 +74,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`demilestoned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** removed from milestone **{{ milestone.title }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "dequeued", @@ -81,9 +87,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`dequeued`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** removed from queue", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "edited", @@ -93,8 +100,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`edited`)", - url: "{{ repository.html_url }}", + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** edited", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", color: color("cyan") }] },{ @@ -105,9 +113,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`enqueued`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** added to queue", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "labeled", @@ -117,8 +126,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`labeled`)", - url: "{{ repository.html_url }}", + title: "[{{ repository.name }}] Label {{ label.name }} added to pull request **#{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", color: color("cyan") }] },{ @@ -129,9 +139,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`locked`)", - url: "{{ repository.html_url }}", - color: color("gray") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** locked", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("magenta") }] },{ action: "milestoned", @@ -141,9 +152,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`milestoned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** added to milestone **{{ milestone.title }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "opened", @@ -153,9 +165,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`opened`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** opened", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("green") }] },{ action: "ready_for_review", @@ -165,9 +178,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`ready_for_review`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** marked as ready for review", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("gray") }] },{ action: "reopened", @@ -177,9 +191,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`reopened`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** reopened", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("green") }] },{ action: "review_request_removed", @@ -189,9 +204,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`review_request_removed`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** review request removed", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("magenta") }] },{ action: "review_requested", @@ -201,9 +217,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`review_requested`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request review requested on **#{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("magenta") }] },{ action: "synchronize", @@ -213,9 +230,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`synchronize`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** head branch updated", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("gray") }] },{ action: "unassigned", @@ -225,9 +243,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`unassigned`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Assignee removed from pull request **#{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "unlabeled", @@ -237,9 +256,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`unlabeled`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Label {{ label.name }} removed from pull request **#{{ pull_request.number }}**", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("cyan") }] },{ action: "unlocked", @@ -249,9 +269,10 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `pull_request` (`unlocked`)", - url: "{{ repository.html_url }}", - color: color("black") + title: "[{{ repository.name }}] Pull request **#{{ pull_request.number }}** unlocked", + url: "{{ pull_request.html_url }}", + description: "{{ pull_request.title}}", + color: color("magenta") }] } ] diff --git a/templates/status.js b/templates/status.js index 8a49fd1..4d89410 100644 --- a/templates/status.js +++ b/templates/status.js @@ -10,7 +10,7 @@ module.exports = [ }, title: "[{{ repository.name }}] Status of commit changed to {{ state }}", url: "{{ target_url || commit.commit.tree.url }}", - color: color("black") + color: color("magenta") }] } ] diff --git a/templates/team.js b/templates/team.js index 5965a63..b902807 100644 --- a/templates/team.js +++ b/templates/team.js @@ -59,7 +59,7 @@ module.exports = [ }, title: "[{{ repository.name }}] Team **{{ team.name }}** removed", url: "{{ repository.html_url }}", - color: color("black") + color: color("red") }] } ] diff --git a/templates/workflow_dispatch.js b/templates/workflow_dispatch.js index 0c4be88..392265e 100644 --- a/templates/workflow_dispatch.js +++ b/templates/workflow_dispatch.js @@ -8,9 +8,9 @@ module.exports = [ icon_url: "{{ sender.avatar_url }}", url: "{{ sender.html_url }}" }, - title: "[{{ repository.name }}] `workflow_dispatch`", + title: "[{{ repository.name }}] Workflow **{{ workflow }}** manually run", url: "{{ repository.html_url }}", - color: color("black") + color: color("yellow") }] } ]