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

changelog command never outputs anything #483

Closed
vigenere23 opened this issue Jul 30, 2022 · 7 comments
Closed

changelog command never outputs anything #483

vigenere23 opened this issue Jul 30, 2022 · 7 comments
Labels
bug Something isn't working properly

Comments

@vigenere23
Copy link

The problem

Whenever I run the command changelog, nothing is ever outputed. Be it having the file not empty, having a pending version change or a newly changed version, after publishing, etc.

Expected behavior

I'm not sure... what is the command even supposed to do? I excpect it to append an entry to the changelog file, if there is none yet for the current version. Aka I expect the publish command to be a combination of version, changelog and pushing the commit/tag everywhere (git, pypi, etc.).

@vigenere23 vigenere23 added the bug Something isn't working properly label Jul 30, 2022
@github-actions
Copy link

This bug report has been labelled as help wanted since there has been no activity in the last 3 weeks. It will not be closed.

@github-actions github-actions bot added the help-wanted Extra attention is required label Aug 21, 2022
@Jalkhov
Copy link

Jalkhov commented Aug 22, 2022

Same here, i run semantic-release -v DEBUG changelog but there is nothing usefull in the output.

@github-actions github-actions bot removed the help-wanted Extra attention is required label Aug 23, 2022
@codejedi365
Copy link
Contributor

What is your version_source set to? If you are using tag, there is already a known bug and fix in the works where changelog is empty (see #362, #171, #486). Currently, if you are using the default version_source = 'commit' then it requires a commit with the version number in the subject line to be detect where to start and stop the gathering of commits for the changelog.

As for the debug log, if you see the line at the end where it returns an empty array, that is why there is no changelog. No commits were found to be used (this is because of the logic error previously described).

@Jalkhov
Copy link

Jalkhov commented Aug 23, 2022

Yes, I just found that issue, as you say I changed version_source = 'commit' and all fixed.

@vigenere23
Copy link
Author

For me it seems to now output a random older commit... However, when publishing, the changelog is fine.

@codejedi365
Copy link
Contributor

codejedi365 commented Aug 26, 2022

@vigenere23 , I think you need to add more specifics or close the issue if it is resolved. If you provide your config, the actions you take and what the debug output provides, and probably the commit history you are building from, it would help us debug your issue. But currently, I can't think what workflow could give you a weird result that you describe, but likely that is because I don't understand your situation.

@vigenere23
Copy link
Author

There was a problem with the merge and the commit history was all crapped. This now seems to be fine, I will follow the other linked issues for more details or solutions if it ever happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

3 participants