UNPKG

semantic-release-jira-notes

Version:

Semantic Release plugin to add JIRA issues link to the release notes

22 lines (17 loc) 580 B
import SemanticReleaseError from "@semantic-release/error"; class RegexError extends SemanticReleaseError { constructor(value, pattern) { super(`Value '${value}' does not match regex: ${pattern}`); } } class InvalidTypeError extends SemanticReleaseError { constructor(variableName, expectedType) { super(`${variableName} should be of type: ${expectedType}`); } } class InputRequiredError extends SemanticReleaseError { constructor(inputName) { super(`Input '${inputName}' is required`); } } export { RegexError, InvalidTypeError, InputRequiredError };