Skip to content

GIT_CLIFF_INCLUDE_PATH does not correctly parse multiple values due to missing value_delimiter configuration #1447

Closed
1 of 1 issue completed

Description

@ognis1205

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

When passing multiple values to CLI arguments such as --include-path via environment variables (e.g. GIT_CLIFF_INCLUDE_PATH), the values are not correctly parsed as multiple entries.

This appears to be caused by not configuring a value_delimiter in clap, which prevents splitting the input string into multiple values.

According to the clap documentation, value_delimiter must be explicitly set to support parsing multiple values from a single argument or environment variable.

Steps To Reproduce

  1. Set an environment variable with multiple values:
export GIT_CLIFF_INCLUDE_PATH="website/**/* .github/**/*"
  1. Run:
git cliff
  1. Observe that the value is treated as a single string instead of multiple patterns

Expected behavior

The values should be split and parsed as multiple entries.

Screenshots / Logs

N/A

Software information

  • Operating system: macOS Tahoe 26.3.1
  • Rust version: 1.93.1 (01f6ddf75 2026-02-11)
  • Project version: 2.12.0

Additional context

#123 (comment)

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    on Mar 18, 2026
  2. saudademjj commented on Mar 19, 2026

    @saudademjj
    Contributor

    I am taking a look at this and plan to fix the env-var parsing for multi-value path arguments by updating the clap argument configuration and adding regression coverage if needed.

  3. saudademjj commented on Mar 19, 2026

    @saudademjj
    Contributor

    I am taking this on. I will work on a focused fix for the env var parsing so multi-value GIT_CLIFF_INCLUDE_PATH inputs are split correctly, and I will add regression coverage before opening a PR.

  4. saudademjj commented on Mar 19, 2026

    @saudademjj
    Contributor

    Opened PR #1449 with the fix and regression coverage for multi-value path filter env vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions