ncipollo / release-action

An action which manages a github release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated What's Changed doesn't contain all the commits

marcossv9 opened this issue · comments

Describe the bug
The Generated What's Changed doesn't contain all the commits, but the diff shows that all the commits have been included in the release. Only the What's changed is wrong.

To Reproduce

I have a reusable workflow that uses the action to create a release when a tag is pushed:

#
# Description: This workflow will create a new release when a tag is pushed to the repository.
#

name: Create Release

on:
  workflow_call:

permissions:
  contents: read
  id-token: write

jobs:
  create-release:
    runs-on: ubuntu-latest
    environment: operations
    steps:
      - name: Generate Githup App Token
        id: generate-token
        uses: actions/create-github-app-token@v1
        with:
          app-id: my-app-id
          private-key: my-private-key
      - name: Checkout
        id: checkout
        uses: actions/checkout@v4
        with:
          persist-credentials: true
          ref: ${{ github.ref }}
          token: ${{ steps.generate-token.outputs.token }}
      - name: Create Release
        id: create-release
        uses: ncipollo/release-action@v1
        with:
          generateReleaseNotes: true
          token: ${{ steps.generate-token.outputs.token }}

Actual workflow that calls the reusable one:

#
# Description: This workflow will create a new release when a tag is pushed to the repository.
#

name: Create Release

on:
  push:
    tags: ["v*"]

permissions:
  contents: read
  id-token: write

jobs:
  create-release:
    name: Create Release
    secrets: inherit
    uses: org/repo/.github/workflows/_create-release.yaml@main

Expected behavior
A changelog for the release that contains all the changes (commits) that happened between the last release and the new one.
I see 6 commits in the diff, but then the what's changed only shows 4 commits...

Screenshots
Changelog:
changelog
Diff:
diff

This is being generated by GitHub, the action has no control over the content there. You can always generate the body yourself as a step before the action runs through.