ScottBrenner / generate-changelog-action

GitHub Actions Hackathon 2020 winner - lob/generate-changelog Action

Home Page:https://github.com/marketplace/actions/generate-changelog-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change log include only last commit

cawa-93 opened this issue · comments

In my workflow, the change log always includes only the last commit.

Reproduce:

  • Create repo from template: cawa-93/vite-electron-builder
  • Make a few commits
  • Push commit to main branch
  • Wait for the draft_release job complete. It will create a draft of a new release. Only the last commit is included in this draft body.

At first I thought it was due to the lack of previous releases or git tags. But this is not the case.

You can check this demo repository.

  • I made several commits.
  • Pushed them into the repository.
  • Published a release (this also created a git tag).
  • Made a few more commits.
  • Pushed them into the repository.
  • Published new release.

Each time the list of changes contained only the last commit.

This reminds me of #6 (comment) - could you try setting fetch-depth: 0 to the checkout step in your workflow? reference: https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches

Yes, it helped. Thanks.