mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-10 12:09:34 +01:00
feat: create action-conventional-commits
This commit is contained in:
parent
b3b8bc11c1
commit
abd844cd82
2 changed files with 4 additions and 0 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
|
@ -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.`);
|
||||
}
|
||||
|
|
2
main.ts
2
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(
|
||||
|
|
Loading…
Reference in a new issue