Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't trigger release if there's only one commit #945

Open
egoist opened this issue Jan 18, 2021 · 3 comments
Open

Can't trigger release if there's only one commit #945

egoist opened this issue Jan 18, 2021 · 3 comments

Comments

@egoist
Copy link

egoist commented Jan 18, 2021

Describe the bug
A clear and concise description of what the bug is.
with only one commit, e.g. feat: init, it says:

› Getting a revision range for this release.
Git tag 'v0.0.0' doesn't exist.
? From which commit do you want to release? 1) 31b86aa (HEAD -> main, origin/main) feat: init
  31b86aa..HEAD
› Calculating the next version.
Nothing to release!

To Reproduce
Steps to reproduce the behavior:

  1. create a repo
  2. create a commit
  3. run shipjs prepare

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • environment: (your local machine, CircleCI, Travis CI, etc.)
  • node -v:
  • npm -v or yarn -v:
  • Ship.js version: 0.23.0

Additional context
Add any other context about the problem here.

@Haroenv
Copy link
Contributor

Haroenv commented Jan 18, 2021

I think this is related to #414

@eunjae-lee
Copy link
Contributor

Yeah it's related, but if there is only one commit, that will happen because there is no commit to release since the commit you chose. Unfortunately the behavior we have is like that. We'll try to find a way to fix this, but in the meantime you can still release it if there is one more commit.

@egoist
Copy link
Author

egoist commented Jan 18, 2021

@eunjae-lee OK, thanks for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants