Skip to content

Changelog includes commits from before the 'sinceTag' tag #39

@enanram

Description

@enanram

I have a step that fetches a specific tag to use in sinceTag. This was working fine until I added excludeTagsRegex. I added this because the changelog included all the tags since the last release, but we just want it to show all the issues since the last release, regardless of their associated tag. Please clarify if I am using this incorrectly.

The step get_last_tag finds the most recent tag that does not end in -develop, and with excludeTagsRegex I am also trying to remove these same tags from the changelog. Now every changelog includes all the issues since I made this change, not since the specified tag. ( I have verified that the correct tag is being passed into this step). After removing the excludeTagsRegex line, the changelog has reverted to how it was before - the correct issues, but lots of tags that just add clutter.

       - name: "Prepare for the Github Release"
        id: generate-release-changelog-main
        uses: heinrichreimer/action-github-changelog-generator@v2.3
        if: github.ref == 'refs/heads/main'
        with:
          token: ${{ secrets.github-token }}
          githubSite: <redacted>
          githubApi: <redacted>
          output: "release_changelog.md"
          headerLabel: "# 📑 Changelog"
          breakingLabel: '### 💥 Breaking'
          enhancementLabel: '### 🚀 Enhancements'
          bugsLabel: '### 🐛 Bug fix'
          securityLabel: '### 🛡️ Security'
          issuesLabel: '### 📁 Other issues'
          prLabel: '### 📁 Other pull requests'
          stripGeneratorNotice: true
          issues: false
          issuesWoLabels: false
          pullRequests: true
          prWoLabels: true
          author: true
          verbose: true
          compareLink: true
          excludeTagsRegex: ".*-develop.*"
          sinceTag: ${{ steps.get_last_tag.outputs.tag }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions