You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to get the name of a repository from the 'git' provider. The path basename is not guaranteed to be the repo name, so I'd rather not rely on it.
The closest thing git gives to a canonical repo name is via the remote origin url:
Does the example code work for you? Otherwise I would probably add a provider defined function to this provider instead of adding a property to an existing resource, since extracting the basename of a remote URL might be useful in various scenarios.
I'd like to get the name of a repository from the 'git' provider. The path basename is not guaranteed to be the repo name, so I'd rather not rely on it.
The closest thing git gives to a canonical repo name is via the remote origin url:
It seems like a fairly straightforward datum to report back, but I'm no Go coder.
Thanks!
The text was updated successfully, but these errors were encountered: