Skip to content

changelog command never outputs anything #483

Closed

Description

@vigenere23

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.).

Activity

  1. github-actions commented on Aug 21, 2022

    @github-actions

    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.

  2. Jalkhov commented on Aug 22, 2022

    @Jalkhov

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

  3. codejedi365 commented on Aug 23, 2022

    @codejedi365
    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).

  4. Jalkhov commented on Aug 23, 2022

    @Jalkhov

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

  5. vigenere23 commented on Aug 23, 2022

    @vigenere23
    Author

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

  6. codejedi365 commented on Aug 26, 2022

    @codejedi365
    Contributor

    @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.

  7. vigenere23 commented on Aug 27, 2022

    @vigenere23
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions