Skip to content

Changelog generation broken in tag mode #171

Closed

Description

@danth

Splitting #109 (comment) off into a separate issue.

I'm having some trouble getting release notes to publish to GitHub. Here's the relevant section from the debug log:

Updating changelog
New release published
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:hvcs 'get_hvcs: hvcs=' 'github' +7.1s
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:history:logs 'generate_changelog("0.4.0", "1.0.0")' +7.1s
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:history:logs 'markdown_changelog(version="1.0.0", header=False, changelog=...)' +4.2ms
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:hvcs 'post_changelog(owner=AlphaMycelium, repository=numunit, version=1.0.0)' +4.4ms
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:hvcs 'get_hvcs: hvcs=' 'github' +71.75us
Wed, 12 Feb 2020 23:34:00 GMT semantic_release:hvcs:github 'listing releases' +0.0us
Wed, 12 Feb 2020 23:34:01 GMT semantic_release:hvcs:github 'response #1, status_code=201, status=True' +235.7ms

The created release does not contain the Markdown changelog but instead just the version number.

Activity

  1. danth commented on Feb 21, 2020

    @danth
    ContributorAuthor

    Found the cause of this bug. When version_source=tag, no new commits are created containing the version number. So, during generation of the changelog, we skip straight over where the version begins:

    https://github.com/relekang/python-semantic-release/blob/e427658e33abf518191498c3142a0f18d3150e07/semantic_release/history/logs.py#L108-L111

    Therefore the generated changelog is blank and GitHub replaces it with the tag message automatically.

  2. changed the title [-]Release notes not posting properly[/-] [+]Changelog generation broken in tag mode[/+] on Feb 28, 2020
  3. added
    bugSomething isn't working properly
    on Mar 26, 2020
  4. added this to the Better Changelogs milestone on Apr 27, 2020
  5. rpocase commented on Apr 21, 2021

    @rpocase

    Any movement on this? I'm switching our CI to us semantic-release version with the tags option to avoid pushing commits from the pipeline. Currently, this defect means I'll just lose changelog generation. Not the end of the world, but not ideal either.

  6. github-actions commented on May 13, 2021

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

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 properlyhelp-wantedExtra attention is required★★★

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions