algolia / shipjs

Take control of what is going to be your next release.
https://community.algolia.com/shipjs/
MIT License
766 stars 30 forks source link

Setup wizard showing incomplete branch names #972

Closed SevenOutman closed 2 years ago

SevenOutman commented 2 years ago

Describe the bug After run npx shipjs setup, the "What is your base branch?" prompt appears but the options to select are displaying branch names not complete, but seeming to be trimmed of several leading letters.

To Reproduce Steps to reproduce the behavior:

  1. Run npx shipjs setup

Expected behavior Showing complete branch names

Screenshots

image

Environment (please complete the following information):

Additional context: I have multiple origins configured. Looks like it's the possible cause. https://github.com/algolia/shipjs/blob/main/packages/shipjs-lib/src/lib/git/getRemoteBranches.js#L14

eunjae-lee commented 2 years ago

Hi @SevenOutman, thanks for reporting your issue. Your guess is probably right. If you don't mind, can you share the output of git remote and git branch -r (probably just a part of them)?

SevenOutman commented 2 years ago

Sure. They are pasted below

image image
eunjae-lee commented 2 years ago

Thanks for providing the info. Yeah that function needs to change to cover all the origins. Are you interested in contributing? If not, it's okay. I can work on this next week if it's okay with you.

SevenOutman commented 2 years ago

I'm glad to help but I happen to be having a whole week off next week 😹.

eunjae-lee commented 2 years ago

Fixed in v0.24.3 :)