Skip to content

Usage of the --unreleased argument gets parsed differently after v4.4.2 #65

@APEX-BLAGOY-PAVLOV

Description

@APEX-BLAGOY-PAVLOV

A setup for creation of a changelog is used in our GitHub actions, as follows:

steps:
  - name: Checkout Repository
    uses: actions/checkout@v4
    with:
      fetch-depth: 0

  - name: Generate Changelog
    uses: orhun/[email protected]
    id: git-cliff
    with:
      config: .github/cliff.toml
      args: --strip all --unreleased --ignore-tags draft-
    env:
      OUTPUT: CHANGELOG.md
  1. While the used version was v4.4.2, the "--unreleased" argument was taken into consideration, and the result came as expected - the action outputs only the latest changes, the ones not falling under any previous tags.
  2. When fixing to v4.5.0, the action started outputting a changelog as if it takes all changes since a long time ago, not just the last ones, since the last tag. This brings to the conclusion that the "--unreleased" argument is not parsed correctly, and the git_cliff is picking all changes, inclusive of the already tagged ones.
  3. On the other hand, with v4.6.0, the changelog comes out empty at all.

All above is happening on the same configs of the "cliff.toml" file, which were inspected and don't seem to have something in common with the case.

The same command arguments have been tested locally on git_cliff v2.7.0, as opposed to v2.10.0, and the behavior is equal between the two. Therefore, it seems that the difference comes from the action itself.
Change of the order of arguments has been tested with no result, as well as replacing the draft- pattern with "draft-*", again no result.

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