From 95ea9f69b6fb2467a69fb5ce450cdb47ca665eb2 Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 24 Mar 2023 20:52:00 +0100 Subject: [PATCH] chore: added a changeset Signed-off-by: blam --- .changeset/tough-cameras-beam.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/tough-cameras-beam.md diff --git a/.changeset/tough-cameras-beam.md b/.changeset/tough-cameras-beam.md new file mode 100644 index 0000000000..c599f168b0 --- /dev/null +++ b/.changeset/tough-cameras-beam.md @@ -0,0 +1,10 @@ +--- +'@backstage/plugin-scaffolder-backend': minor +--- + +Provide some more default filters out of the box and refactoring how the filters are applied to the `SecureTemplater`. + +- `parseEntityRef` will take an string entity triplet and return a parsed object. +- `pick` will allow you to reference a specific property in the piped object. + +So you can now combine things like this: `${{ parameters.entity | parseEntityRef | pick('name') }}` to get the name of a specific entity, or `${{ parameters.repoUrl | parseRepoUrl | pick('owner) }}` to get the owner of a repo.