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

Handle when git repo is fetched without history / no commits #159

Open
pi0 opened this issue Nov 10, 2023 · 0 comments
Open

Handle when git repo is fetched without history / no commits #159

pi0 opened this issue Nov 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pi0
Copy link
Member

pi0 commented Nov 10, 2023

When git repository is fetched without history, (by default actions/checkout does this), changelogen encounters an error as it expects at least one commit with error Cannot read properties of undefined (reading 'shortHash')

Example: https://github.com/unjs/ipx/actions/runs/6824241355/job/18559741909

Right solution is to set fetch-depth for action but i think changelogen should also handle this.

@pi0 pi0 added the bug Something isn't working label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant