From abd844cd82e219488bb0de4b2455ae7e3117bf28 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Thu, 11 Jun 2020 08:44:55 +0200 Subject: [PATCH] feat: create action-conventional-commits --- dist/main/index.js | 2 ++ main.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/main/index.js b/dist/main/index.js index 4814f0e..665e44b 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -23573,6 +23573,7 @@ function run() { return; } let hasErrors; + core.startGroup("Commit messages"); for (let i = 0; i < context.payload.commits.length; i++) { let commit = context.payload.commits[i]; if (isValidCommitMessage(commit.message)) { @@ -23583,6 +23584,7 @@ function run() { hasErrors = true; } } + core.endGroup(); if (hasErrors) { core.setFailed(`🚫 According to the conventional-commits specification, some of the commit messages are not valid.`); } diff --git a/main.ts b/main.ts index d376bd8..e166fad 100644 --- a/main.ts +++ b/main.ts @@ -15,6 +15,7 @@ async function run() { } let hasErrors; + core.startGroup("Commit messages"); for (let i = 0; i < context.payload.commits.length; i++) { let commit = context.payload.commits[i]; if (isValidCommitMessage(commit.message)) { @@ -24,6 +25,7 @@ async function run() { hasErrors = true; } } + core.endGroup(); if (hasErrors) { core.setFailed(