Restore original yaml formatting

Signed-off-by: Jake Smith <jakemgsmith@gmail.com>
This commit is contained in:
Jake Smith
2025-11-23 17:15:11 +00:00
committed by Fredrik Adelöw
parent 864d969252
commit 58b6b933fe
@@ -1,4 +1,3 @@
---
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
@@ -10,101 +9,100 @@ spec:
type: service
parameters:
- title: Choose a location
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- bitbucket.org
# The rest of these options are optional.
# You can read more at: https://backstage.io/docs/reference/plugin-scaffolder.repourlpickerfieldextension
# allowedOwners:
# - WORKSPACE1
# - WORKSPACE2
# allowedProjects:
# - PROJECT1
# - PROJECT2
# allowedRepos:
# - REPO1
# - REPO2
- title: Fill in some steps
required:
- name
- owner
properties:
name:
title: Name
type: string
description: Unique name of the component
ui:autofocus: true
ui:options:
rows: 5
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
kind: Group
- title: Choose a location
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- bitbucket.org
# The rest of these options are optional.
# You can read more at: https://backstage.io/docs/reference/plugin-scaffolder.repourlpickerfieldextension
# allowedOwners:
# - WORKSPACE1
# - WORKSPACE2
# allowedProjects:
# - PROJECT1
# - PROJECT2
# allowedRepos:
# - REPO1
# - REPO2
- title: Fill in some steps
required:
- name
- owner
properties:
name:
title: Name
type: string
description: Unique name of the component
ui:autofocus: true
ui:options:
rows: 5
owner:
title: Owner
type: string
description: Owner of the component
ui:field: OwnerPicker
ui:options:
catalogFilter:
kind: Group
steps:
- id: fetch-base
name: Fetch Base
action: fetch:template
input:
url: ./template
values:
name: ${{ parameters.name }}
owner: ${{ parameters.owner }}
- id: fetch-docs
name: Fetch Docs
action: fetch:plain
input:
targetPath: ./community
url: https://github.com/backstage/community/tree/main/backstage-community-sessions
- id: publish
name: Publish
action: publish:bitbucketCloud
input:
description: This is ${{ parameters.name }}
repoUrl: ${{ parameters.repoUrl }}
- id: fetch-base
name: Fetch Base
action: fetch:template
input:
url: ./template
values:
name: ${{ parameters.name }}
owner: ${{ parameters.owner }}
- id: fetch-docs
name: Fetch Docs
action: fetch:plain
input:
targetPath: ./community
url: https://github.com/backstage/community/tree/main/backstage-community-sessions
- id: publish
name: Publish
action: publish:bitbucketCloud
input:
description: This is ${{ parameters.name }}
repoUrl: ${{ parameters.repoUrl }}
- id: register
name: Register
action: catalog:register
input:
repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
catalogInfoPath: '/catalog-info.yaml'
- id: register
name: Register
action: catalog:register
input:
repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
catalogInfoPath: '/catalog-info.yaml'
- id: create-pr-file
name: Create PR File
action: fetch:plain
input:
targetPath: ./pr-demo
url: https://github.com/backstage/community/blob/main/README.md
- id: create-pr
name: Create Pull Request
action: publish:bitbucketCloud:pull-request
input:
repoUrl: ${{ parameters.repoUrl }}
title: Test PR for ${{ parameters.name }}
description: This is a test pull request created by the scaffolder template to test OAuth support
sourceBranch: scaffolder-pr-${{ parameters.name }}
targetBranch: master
- id: create-pr-file
name: Create PR File
action: fetch:plain
input:
targetPath: ./pr-demo
url: https://github.com/backstage/community/blob/main/README.md
- id: create-pr
name: Create Pull Request
action: publish:bitbucketCloud:pull-request
input:
repoUrl: ${{ parameters.repoUrl }}
title: Test PR for ${{ parameters.name }}
description: This is a test pull request created by the scaffolder template to test OAuth support
sourceBranch: scaffolder-pr-${{ parameters.name }}
targetBranch: master
output:
links:
- title: Repository
url: ${{ steps['publish'].output.remoteUrl }}
- title: Pull Request
url: ${{ steps['create-pr'].output.pullRequestUrl }}
- title: Open in catalog
icon: catalog
entityRef: ${{ steps['register'].output.entityRef }}
- title: Repository
url: ${{ steps['publish'].output.remoteUrl }}
- title: Pull Request
url: ${{ steps['create-pr'].output.pullRequestUrl }}
- title: Open in catalog
icon: catalog
entityRef: ${{ steps['register'].output.entityRef }}