@backstage-community/plugin-scaffolder-backend-module-annotator
Version:
The annotator module for @backstage/plugin-scaffolder-backend
23 lines (19 loc) • 824 B
JavaScript
;
var getCurrentTimestamp = require('../../utils/getCurrentTimestamp.cjs.js');
var annotator = require('../annotator/annotator.cjs.js');
var createTimestampAction_examples = require('./createTimestampAction.examples.cjs.js');
const createTimestampAction = () => {
return annotator.createAnnotatorAction(
"catalog:timestamping",
"Creates a new `catalog:timestamping` Scaffolder action to annotate scaffolded entities with creation timestamp.",
"Annotating catalog-info.yaml with current timestamp",
() => {
return {
annotations: { "backstage.io/createdAt": getCurrentTimestamp.getCurrentTimestamp() }
};
},
createTimestampAction_examples.examples
);
};
exports.createTimestampAction = createTimestampAction;
//# sourceMappingURL=createTimestampAction.cjs.js.map