UNPKG

@atomist/sdm-pack-changelog

Version:

Extension Pack for an Atomist SDM to manage changelogs

32 lines 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Goal that performs autofixes: For example, linting and adding license headers. */ const sdm_1 = require("@atomist/sdm"); const releaseGoal_1 = require("../changelog/releaseGoal"); /** * Changelog goal that releases the current version in the CHANGELOG.md file */ class Changelog extends sdm_1.FulfillableGoal { constructor(goalDetailsOrUniqueName = sdm_1.DefaultGoalNameGenerator.generateName("changelog"), ...dependsOn) { super(Object.assign(Object.assign({}, ChangelogDefinition), sdm_1.getGoalDefinitionFrom(goalDetailsOrUniqueName, sdm_1.DefaultGoalNameGenerator.generateName("changelog"))), ...dependsOn); this.addFulfillment({ name: `changelog-${this.definition.uniqueName}`, logInterpreter: sdm_1.LogSuppressor, goalExecutor: releaseGoal_1.executeReleaseChangelog(), }); } } exports.Changelog = Changelog; const ChangelogDefinition = { uniqueName: "ReleaseChangeLog", environment: sdm_1.ProductionEnvironment, orderedName: "3-release-change-log", displayName: "update changelog", workingDescription: "Updating changelog", completedDescription: "Updated changelog", failedDescription: "Updating changelog failure", isolated: true, }; //# sourceMappingURL=Changelog.js.map