Hey,
I would like a new command to list git remotes.
It seems like the whole list is already in the config file.
WDYT?
@wmhilton I tried to tackle this one.
It seems that the current GitConfig won't allow us to list all named sections remote.
Should we add a new getter like getSections('remote') that could return this:
{
origin: {
url: 'https://...'
},
clever: {
url: 'https://...'
}
}
I was also wondering about the form of the return of listRemotes...
I think it should be an array with name and urls like this:
[
{ name: 'origin', url: 'https://...' },
{ name: 'clever', url: 'https://...' },
]
I think it should be an array with name and urls like this:
What about instead of name use remote? Just because that way it's the same as the remote parameter used in fetch and push. E.g.
[
{ remote: 'origin', url: 'https://...' },
{ remote: 'clever', url: 'https://...' },
]
:tada: This issue has been resolved in version 0.25.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Most helpful comment
@wmhilton I tried to tackle this one.
It seems that the current GitConfig won't allow us to list all named sections remote.
Should we add a new getter like
getSections('remote')that could return this: