semantic-release-gh
Version:
The official GitHub plugin, modified to accept repositoryUrl as a parameter
11 lines • 468 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetError = void 0;
const SemanticReleaseError = require('@semantic-release/error');
const errors_1 = require("./definitions/errors");
const GetError = (code, context = {}) => {
const { message, details } = errors_1.ERROR_DEFINITIONS[code](context);
return new SemanticReleaseError(message, code, details);
};
exports.GetError = GetError;
//# sourceMappingURL=get-error.js.map