question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to read repo name from RepoUrlPicker field?

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
frebencommented, Feb 21, 2022

Could you try something like ${{ (parameters.repoUrl | parseRepoUrl).repo }}?

0reactions
sharadpattanshetticommented, Aug 4, 2022

Thanks @shailendra-ahir-cbre , this works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found