UNPKG

@backstage-community/plugin-scaffolder-backend-module-annotator

Version:

The annotator module for @backstage/plugin-scaffolder-backend

26 lines (22 loc) 865 B
'use strict'; var annotator = require('../annotator/annotator.cjs.js'); var createVersionAction_examples = require('./createVersionAction.examples.cjs.js'); const createVersionAction = () => { return annotator.createAnnotatorAction( "catalog:template:version", "Creates a new `catalog:template:version` scaffolder action to update a catalog-info.yaml with the versioning information from the scaffolder template", "Annotating catalog-info.yaml with the version of the scaffolder template", () => { return { annotations: { "backstage.io/template-version": { readFromContext: "templateInfo.entity.metadata.annotations" } } }; }, createVersionAction_examples.examples ); }; exports.createVersionAction = createVersionAction; //# sourceMappingURL=createVersionAction.cjs.js.map