@backstage-community/plugin-scaffolder-backend-module-annotator
Version:
The annotator module for @backstage/plugin-scaffolder-backend
21 lines (17 loc) • 690 B
JavaScript
;
var getCurrentTimestamp = require('../../utils/getCurrentTimestamp.cjs.js');
var annotator = require('../annotator/annotator.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() }
};
}
);
};
exports.createTimestampAction = createTimestampAction;
//# sourceMappingURL=createTimestampAction.cjs.js.map