diff --git a/docs/features/software-templates/writing-templates.md b/docs/features/software-templates/writing-templates.md index 3594c395eb..95e9047bde 100644 --- a/docs/features/software-templates/writing-templates.md +++ b/docs/features/software-templates/writing-templates.md @@ -627,7 +627,7 @@ its components, such as `owner`, repository `name`, and more. extra: ${{ parameters.repoUrl | parseRepoUrl }} ``` -- **Input**: `https://github.com/backstage/backstage` +- **Input**: `github.com?repo=backstage&org=backstage` - **Output**: [RepoSpec](https://github.com/backstage/backstage/blob/v1.17.2/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/util.ts#L39) ### parseEntityRef @@ -677,8 +677,8 @@ This `pick` filter allows you to select specific properties from an object. extra: ${{ parameters.owner | parseEntityRef | pick('name') }} ``` -- **Input**: `group:techdocs` -- **Output**: `techndocs` +- **Input**: `{ kind: 'Group', namespace: 'default', name: 'techdocs' }` +- **Output**: `techdocs` ### projectSlug @@ -694,5 +694,5 @@ The `projectSlug` filter generates a project slug from a repository URL extra: ${{ parameters.repoUrl | projectSlug }} ``` -- **Input**: `https://github.com/backstage/backstage` +- **Input**: `github.com?repo=backstage&org=backstage` - **Output**: `backstage/backstage`