When publishing a package for use by programmers, automated changelog generation is very beneficial. In this blog post, I explore how to do it in a simple way that works everywhere.

  • MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    19 hours ago

    Oh, nice.

    I’m always looking for another ChangeLog tool.

    That said, I never leave my ChamgeLogs up to automation.

    My git logs are open to my users for full details, but my ChangeLogs are how I communicate which changes my users probably need to be aware of.

    So far, this hasn’t yielded well to automation. But my team is still considering standardizing our commit log messages enough to allow it someday.

    • fhoekstra@feddit.nlOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      13 hours ago

      Thanks for your feedback!

      Some thoughts:

      • You could configure your cliff.toml (generated with git-cliff --init) to ignore any commits that aren’t interesting to your users
      • You could use “squash merge” to the prerelease/staging/development branch so that you can commit without worry, and then only have your PR titles follow conventional commits (if the change is interesting to your users)

      I should probably add those to the blog.

      But yeah, I get preferring to write manual tailored changelogs. Personally I am just a little neurotic about single source of truth and a huge Git nerd. And I know that at least in this job, my users are neurotic enough to prefer completeness.