This commit is contained in:
parent
b63ecc1ff1
commit
5a62803ac5
78
dist/index.js
vendored
78
dist/index.js
vendored
@ -27272,6 +27272,65 @@ function requireCore$3 () {
|
|||||||
|
|
||||||
var coreExports = 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 re = {exports: {}};
|
||||||
|
|
||||||
var constants;
|
var constants;
|
||||||
@ -34023,25 +34082,6 @@ var defaultRules = {
|
|||||||
"type-min-length": typeMinLength,
|
"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, }) => {
|
const buildCommitMessage = ({ header, body, footer, }) => {
|
||||||
let message = header;
|
let message = header;
|
||||||
message = body ? `${message}\n\n${body}` : message;
|
message = body ? `${message}\n\n${body}` : message;
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,5 @@
|
|||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
|
import "@commitlint/config-conventional";
|
||||||
import lint from "@commitlint/lint";
|
import lint from "@commitlint/lint";
|
||||||
import load from "@commitlint/load";
|
import load from "@commitlint/load";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user