-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cannot read property 'commit' of undefined #1
Comments
Hello, thanks for reporting the issue. Can you please post your configuration for this action too? It seems that the action wasn't able to fetch any commits. And also the range is quite off as the current release index shouldn't be -1. |
sure,
im not sure about the "current-tag". right now im using a new tag wich is generated in the same workflow for release upload |
Thanks, the configuration itself seems fine. Are you sure the newly generated tag is pushed before the action is called and you can see it in the log of the action? Or if the env value provides a proper tag value? The ´current-tag´ field is used to select a proper tag from the list. I was able to reproduce your issue by providing a non-existent tag to the ’current-tag´ field. Anyway this is a good edge case to handle. |
Alternatively, you could just remove the ´current-tag´ field. This would tell the action to use the first tag available. That should be the same as the first tag you get when calling ´git tag´ in terminal. |
ah ok. Now i understand. the tag doesnt exists at this time, because i want to have the fresh changelog file inside my release package. i tried to remove the tag.
does this error also belongs to my wrong workflow? Because I dont set a template |
OK, great we figured that out. Unfortunately this is based on the API, so you have to have it pushed already. I was also thinking of preparing an integration which would allow you to use this action which would work with the git history in the local repo. It'd be a great enhancement for use cases like yours. Also about the error you're getting, that's definitely the error on side of the action. For me it works well without the path specified and it falls back to the default one. So I will have to investigate why this happened to you. Thanks for reporting these! ✅ I am going to focus on handling these edge cases and errors for the next version so the integration is more seamless and more informative in the future. |
Thank you very much for your help! |
You are welcome. I will close this issue once the new release is out and fixes these problems. You too have a nice day. |
I am using this as a workaround for the changelog template not being found:
|
Hello im very new to github actions and want to use your changelog generator.
Unfortunally i get this error:
What does it means?
Thanks in advance
The text was updated successfully, but these errors were encountered: