How to read repo name from RepoUrlPicker field?
See original GitHub issueI am using the RepoUrlPicker as below and need to get the repo name out of it. I tried ${{ parameters.repoUrl.repoName }} and ${{ parameters.repoUrl.repoName | parseRepoUrl }} but none of them work.
- title: Choose a SCM Location required: - repoUrl properties: repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: allowedHosts: - git.tools.org.com
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
How do you get the Git repository's name in some Git repository?
Well, if, for the repository name you mean the Git root directory name (the one that contains the .git directory) you can run...
Read more >Writing Templates · Backstage Software Catalog and ...
- title: Choose a location required: - repoUrl properties: repoUrl: title: Repository Location type: string ui:field: RepoUrlPicker ui:options: # Here's the ...
Read more >Writing scaffolder templates - Roadie.io
The repo url picker described in the string parameter description above. The repoUrl must be in the format bitbucket.org?repo=<project name> ...
Read more >Onboarding Software to Backstage - Spotify Backstage
In the template.yaml file of the template we created, you must have noticed ui:field: RepoUrlPicker in the spec.parameters field.
Read more >@parfuemerie-douglas/scaffolder-backend-module-azure-pipelines ...
Note: If you are using this plugin in a Backstage monorepo that contains the code ... name type: string description: Choose a unique...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you try something like
${{ (parameters.repoUrl | parseRepoUrl).repo }}
?Thanks @shailendra-ahir-cbre , this works.