diff --git a/README.md b/README.md index c1529441..05fc6e65 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ footer: notify_when: description: Specify on which events a slack notification is sent required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" mention_users: description: Specify the slack IDs of users you want to mention. @@ -184,7 +184,7 @@ mention_users: mention_users_when: description: Specify on which events you want to mention the users required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" mention_groups: description: Specify the slack IDs of groups you want to mention @@ -194,7 +194,7 @@ mention_groups: mention_groups_when: description: Specify on which events you want to mention the groups required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" icon_success: description: Specify on icon to be used when event is success @@ -215,6 +215,11 @@ icon_warnings: description: Specify on icon to be used when event is warnings required: false default: ":large_orange_diamond:" + +icon_skipped: + description: Specify on icon to be used when event is skipped + required: false + default: ":fast_forward:" ``` ## Development diff --git a/action.yml b/action.yml index e5418104..e1b058a0 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ inputs: notify_when: description: Specify on which events a slack notification is sent required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" mention_users: description: Specify the slack IDs of users you want to mention required: false @@ -32,7 +32,7 @@ inputs: mention_users_when: description: Specify on which events you want to mention the users required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" mention_groups: description: Specify the slack IDs of groups you want to mention required: false @@ -40,7 +40,7 @@ inputs: mention_groups_when: description: Specify on which events you want to mention the groups required: false - default: "success,failure,cancelled,warnings" + default: "success,failure,cancelled,warnings,skipped" icon_success: description: Specify on icon to be used when event is success required: false @@ -57,6 +57,10 @@ inputs: description: Specify on icon to be used when event is warnings required: false default: ":large_orange_diamond:" + icon_skipped: + description: Specify on icon to be used when event is skipped + required: false + default: ":fast_forward:" branding: icon: send diff --git a/dist/index.js b/dist/index.js index 7bf3d31d..41a3a265 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30,6 +30,8 @@ const actionColor = (status) => { return "danger"; if (status === "cancelled") return "danger"; + if (status === "skipped") + return "#4a4a4a"; return "warning"; }; const actionStatus = (status) => { @@ -39,6 +41,8 @@ const actionStatus = (status) => { return "failed"; if (status === "cancelled") return "cancelled"; + if (status === "skipped") + return "skipped"; return "passed with warnings"; }; const actionEmoji = (status) => { @@ -48,6 +52,8 @@ const actionEmoji = (status) => { return (0, core_1.getInput)("icon_failure"); if (status === "cancelled") return (0, core_1.getInput)("icon_cancelled"); + if (status === "skipped") + return (0, core_1.getInput)("icon_skipped"); return (0, core_1.getInput)("icon_warnings"); }; const makeMessage = (template, values) => { @@ -172,7 +178,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () { } }); run(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFtRDtBQUNuRCw0Q0FBeUM7QUFDekMsNERBQThCO0FBSTlCLE1BQU0sV0FBVyxHQUFHLENBQUMsTUFBaUIsRUFBRSxFQUFFO0lBQ3hDLElBQUksTUFBTSxLQUFLLFNBQVM7UUFBRSxPQUFPLE1BQU0sQ0FBQTtJQUN2QyxJQUFJLE1BQU0sS0FBSyxTQUFTO1FBQUUsT0FBTyxRQUFRLENBQUE7SUFDekMsSUFBSSxNQUFNLEtBQUssV0FBVztRQUFFLE9BQU8sUUFBUSxDQUFBO0lBQzNDLE9BQU8sU0FBUyxDQUFBO0FBQ2xCLENBQUMsQ0FBQTtBQUVELE1BQU0sWUFBWSxHQUFHLENBQUMsTUFBaUIsRUFBRSxFQUFFO0lBQ3pDLElBQUksTUFBTSxLQUFLLFNBQVM7UUFBRSxPQUFPLFFBQVEsQ0FBQTtJQUN6QyxJQUFJLE1BQU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Qy9DLElBQUksRUFBRSxPQUFPO0tBQ2QsQ0FBQyxDQUFBO0FBQ0osQ0FBQyxDQUFBLENBQUE7QUFFRCxNQUFNLEdBQUcsR0FBRyxHQUFTLEVBQUU7SUFDckIsSUFBSTtRQUNGLE1BQU0sVUFBVSxHQUFHLGVBQWUsQ0FBQyxJQUFBLGVBQVEsRUFBQyxhQUFhLENBQUMsQ0FBQyxDQUFBO1FBQzNELE1BQU0sU0FBUyxHQUFHLElBQUEsZUFBUSxFQUFDLFFBQVEsQ0FBYyxDQUFBO1FBQ2pELElBQUksQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBQztZQUFFLE9BQU07UUFFM0MsTUFBTSxPQUFPLEdBQUcsTUFBTSxJQUFBLG9CQUFZLEdBQUUsQ0FBQTtRQUNwQyxNQUFNLFdBQVcsQ0FBQyxPQUFPLENBQUMsQ0FBQTtLQUMzQjtJQUFDLE9BQU8sQ0FBQyxFQUFFO1FBQ1YsSUFBSSxDQUFDLFlBQVksS0FBSztZQUFFLElBQUEsZ0JBQVMsRUFBQyxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUE7S0FDN0M7QUFDSCxDQUFDLENBQUEsQ0FBQTtBQUVELEdBQUcsRUFBRSxDQUFBIn0= /***/ }), diff --git a/src/main.ts b/src/main.ts index 6c503871..151c2aa9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,12 +2,13 @@ import { getInput, setFailed } from "@actions/core" import { context } from "@actions/github" import fetch from "node-fetch" -type JobStatus = "success" | "failure" | "cancelled" | "warning" +type JobStatus = "success" | "failure" | "cancelled" | "warning" | "skipped" const actionColor = (status: JobStatus) => { if (status === "success") return "good" if (status === "failure") return "danger" if (status === "cancelled") return "danger" + if (status === "skipped") return "#4a4a4a" return "warning" } @@ -15,6 +16,7 @@ const actionStatus = (status: JobStatus) => { if (status === "success") return "passed" if (status === "failure") return "failed" if (status === "cancelled") return "cancelled" + if (status === "skipped") return "skipped" return "passed with warnings" } @@ -22,6 +24,7 @@ const actionEmoji = (status: JobStatus) => { if (status === "success") return getInput("icon_success") if (status === "failure") return getInput("icon_failure") if (status === "cancelled") return getInput("icon_cancelled") + if (status === "skipped") return getInput("icon_skipped") return getInput("icon_warnings") }