fixup! set for failure
Some checks failed
/ test (push) Failing after 19s

This commit is contained in:
Luís Murta 2025-06-21 10:24:29 +01:00
parent b63ecc1ff1
commit 5a62803ac5
Signed by: satprog
GPG Key ID: 169EF1BBD7049F94
3 changed files with 61 additions and 20 deletions

78
dist/index.js vendored
View File

@ -27272,6 +27272,65 @@ function requireCore$3 () {
var coreExports = requireCore$3();
/**
* Rules always have a severity.
* Severity indicates what to do if the rule is found to be broken
* 0 - Disable this rule
* 1 - Warn for violations
* 2 - Error for violations
*/
var RuleConfigSeverity;
(function (RuleConfigSeverity) {
RuleConfigSeverity[RuleConfigSeverity["Disabled"] = 0] = "Disabled";
RuleConfigSeverity[RuleConfigSeverity["Warning"] = 1] = "Warning";
RuleConfigSeverity[RuleConfigSeverity["Error"] = 2] = "Error";
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
var RuleConfigQuality;
(function (RuleConfigQuality) {
RuleConfigQuality[RuleConfigQuality["User"] = 0] = "User";
RuleConfigQuality[RuleConfigQuality["Qualified"] = 1] = "Qualified";
})(RuleConfigQuality || (RuleConfigQuality = {}));
({
rules: {
"body-leading-blank": [RuleConfigSeverity.Warning, "always"],
"body-max-line-length": [RuleConfigSeverity.Error, "always", 100],
"footer-leading-blank": [RuleConfigSeverity.Warning, "always"],
"footer-max-line-length": [
RuleConfigSeverity.Error,
"always",
100,
],
"header-max-length": [RuleConfigSeverity.Error, "always", 100],
"header-trim": [RuleConfigSeverity.Error, "always"],
"subject-case": [
RuleConfigSeverity.Error,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],
"subject-empty": [RuleConfigSeverity.Error, "never"],
"subject-full-stop": [RuleConfigSeverity.Error, "never", "."],
"type-case": [RuleConfigSeverity.Error, "always", "lower-case"],
"type-empty": [RuleConfigSeverity.Error, "never"],
"type-enum": [
RuleConfigSeverity.Error,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
],
],
}});
var re = {exports: {}};
var constants;
@ -34023,25 +34082,6 @@ var defaultRules = {
"type-min-length": typeMinLength,
};
/**
* Rules always have a severity.
* Severity indicates what to do if the rule is found to be broken
* 0 - Disable this rule
* 1 - Warn for violations
* 2 - Error for violations
*/
var RuleConfigSeverity;
(function (RuleConfigSeverity) {
RuleConfigSeverity[RuleConfigSeverity["Disabled"] = 0] = "Disabled";
RuleConfigSeverity[RuleConfigSeverity["Warning"] = 1] = "Warning";
RuleConfigSeverity[RuleConfigSeverity["Error"] = 2] = "Error";
})(RuleConfigSeverity || (RuleConfigSeverity = {}));
var RuleConfigQuality;
(function (RuleConfigQuality) {
RuleConfigQuality[RuleConfigQuality["User"] = 0] = "User";
RuleConfigQuality[RuleConfigQuality["Qualified"] = 1] = "Qualified";
})(RuleConfigQuality || (RuleConfigQuality = {}));
const buildCommitMessage = ({ header, body, footer, }) => {
let message = header;
message = body ? `${message}\n\n${body}` : message;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,5 @@
import * as core from "@actions/core";
import "@commitlint/config-conventional";
import lint from "@commitlint/lint";
import load from "@commitlint/load";