himynameisdave / git-labelmaker

:flags: Manage your GitHub labels from the command line!
MIT License
574 stars 33 forks source link

Recognize multiple remotes #67

Closed mbbroberg closed 7 years ago

mbbroberg commented 8 years ago

A common open source workflow includes having an origin remote for my fork and an upstream fork for the primary project. I found, to use this tool, I have to rename my upstream to origin for it to work.

I'm good with either updating documentation to include that note or adding additional logic to ask which remote is the right one. Your call 👍

intelsdi-x/snap # git remote rename origin upstream
intelsdi-x/snap # git remote
mjbrender
upstream
intelsdi-x/snap # git-labelmaker
? You have a saved token.
Would you like to unlock & use this token, or create a new one? Use Saved Token
? What is your master password?
TypeError: Cannot read property 'url' of undefined
    at module.exports (/usr/local/lib/node_modules/git-labelmaker/bin/modules/readRepo.js:13:40)
    at Promise.all.then (/usr/local/lib/node_modules/git-labelmaker/bin/index.js:38:19)
 ✘ intelsdi-x/snap # git remote rename upstream origin
intelsdi-x/snap # git-labelmaker
? You have a saved token.
Would you like to unlock & use this token, or create a new one? Use Saved Token
? What is your master password?
=======================================
]|[                                 ]|[
]|[    Welcome to git-labelmaker    ]|[
]|[                                 ]|[
=======================================

? Welcome to git-labelmaker!
What would you like to do? Quit
=======================================
]|[                                 ]|[
]|[            See Ya!              ]|[
]|[                                 ]|[
=======================================
himynameisdave commented 7 years ago

@mbbroberg sorry it's taking so long, but as of the 0.9.0 release (which should be ready for publishing soon) you will be prompted for which remote url you want to use.

Thanks for this suggestion 👍

giphub

mbbroberg commented 7 years ago

Great update, thanks so much!