Skip to content

fields for github remote not populated #1274

@joluizquierdo

Description

@joluizquierdo

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

When running git-cliff and the environment variables 'GITHUB_TOKEN', 'GITHUB_REPO' are properly set, github context is not properly populated everything appear empty.

I checked if the token might be the issue, but the debug mode show that the API calls to Github are properly set, and it's actually retrieving the pull request information and commits for the api (see pictures below).

For further clarification: The branch in the tests have a few commits not released and all of those commits where merged in to the branch from a previous PR using squash strategy merge.

Steps To Reproduce

  1. Install git-cliff using cargo
  2. Generate a Github token (classic) with full permissions over repo, workflow and write:discussion in grant access to the private ORG where the repository is hosted.
  3. set environment variables 'GITHUB_TOKEN' and 'GITHUB_REPO'
  4. run git-cliff --unreleased -v --context and check for each commit 'github' field, it appears null and empty.

Expected behavior

The context object should populate the github fields like 'pr_number' and 'username'.
Correctly.

Screenshots / Logs

When running the command: git-cliff --unreleased -v --context

DEBUG git_cliff_core::changelog > Adding remote data...
 DEBUG git_cliff_core::changelog > You are using an experimental feature! Please report bugs at <https://git-cliff.org/issues>
▸▹▹▹▹ Retrieving data from GitHub... (my-fake-org/my-fake-repo)                                                     DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=0
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=1
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=2
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=3
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=4
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=5
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=6
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=7
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=8
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=9
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/pulls?per_page=100&page=0&state=closed
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/pulls?per_page=100&page=1&state=closed
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/pulls?per_page=100&page=2&state=closed
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/pulls?per_page=100&page=3&state=closed
 DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/pulls?per_page=100&page=4&state=closed
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG reqwest::connect          > starting new connection: https://api.github.com/
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
▹▸▹▹▹ Retrieving data from GitHub... (my-fake-org/my-fake-repo)                                                     DEBUG rustls::client::hs        > No cached session for DnsName("api.github.com")
 DEBUG rustls::client::hs        > Not resuming any session
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
 DEBUG rustls::client::hs        > Using ciphersuite TLS13_AES_128_GCM_SHA256
 DEBUG rustls::client::tls13     > Not resuming
 DEBUG rustls::client::tls13     > TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
 DEBUG rustls::client::hs        > ALPN protocol is Some(b"http/1.1")
▹▹▸▹▹ Retrieving data from GitHub... (my-fake-org/my-fake-repo)                                                     DEBUG git_cliff_core::remote    > Sending request to: https://api.github.com/repos/my-fake-org/my-fake-repo/commits?per_page=100&page=10
▹▹▹▹▸ Retrieving data from GitHub... (my-fake-org/my-fake-repo)                                                     DEBUG git_cliff_core::remote    > Error while fetching page: PaginationError("end of entries")
 DEBUG rustls::common_state      > Sending warning alert CloseNotify
▸▹▹▹▹ Retrieving data from GitHub... (my-fake-org/my-fake-repo)                                                     DEBUG git_cliff_core::remote    > Error while fetching page: PaginationError("end of entries")
 DEBUG git_cliff_core::changelog > Number of GitHub commits: 88
 DEBUG git_cliff_core::changelog > Number of GitHub pull requests: 36
 DEBUG git_cliff_core::changelog > Processing the commits...
 DEBUG git_cliff_core::changelog > Verifying that all commits are conventional.
 DEBUG git_cliff_core::changelog > Processing 1 release(s)...

[
  {
    "version": null,
    "message": null,
    "commits": [
      {
        "id": "137f7fcfe9c6b1f0892400e51f63993a4cbd271a",
        "message": "minor improvements",
        "body": null,
        "footers": [],
        "group": "<!-- 7 -->⚙️ Miscellaneous Tasks",
        "breaking_description": null,
        "breaking": false,
        "scope": "create-release.yml",
        "links": [],
        "author": {
          "name": "Jolu Izquierdo",
          "email": "[email protected]",
          "timestamp": 1758896511
        },
        "committer": {
          "name": "Jolu Izquierdo",
          "email": "[email protected]",
          "timestamp": 1758896511
        },
        "conventional": true,
        "merge_commit": false,
        "extra": null,
        "github": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitlab": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitea": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "bitbucket": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "raw_message": "ci(create-release.yml): minor improvements"
      },
      {
        "id": "1b5485314695fc3364e340243d2452d5fa14483b",
        "message": "add workflow for checking feature branches (#16)",
        "body": "This is just an additional description",
        "footers": [],
        "group": "<!-- 0 -->🚀 Features",
        "breaking_description": null,
        "breaking": false,
        "scope": null,
        "links": [],
        "author": {
          "name": "Jose Luis Izquierdo",
          "email": "[email protected]",
          "timestamp": 1759243606
        },
        "committer": {
          "name": "GitHub",
          "email": "[email protected]",
          "timestamp": 1759243606
        },
        "conventional": true,
        "merge_commit": false,
        "extra": null,
        "github": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitlab": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitea": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "bitbucket": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "raw_message": "feat: add workflow for checking feature branches (#16)\n\nThis is just an additional description"
      },
      {
        "id": "791764780c053ededa6ca5d9f89fead1bc662d3c",
        "message": "git-cliff not taking valid token",
        "body": null,
        "footers": [],
        "group": "<!-- 1 -->🐛 Bug Fixes",
        "breaking_description": null,
        "breaking": false,
        "scope": null,
        "links": [],
        "author": {
          "name": "Jose Luis Izquierdo",
          "email": "[email protected]",
          "timestamp": 1759244431
        },
        "committer": {
          "name": "GitHub",
          "email": "[email protected]",
          "timestamp": 1759244431
        },
        "conventional": true,
        "merge_commit": false,
        "extra": null,
        "github": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitlab": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitea": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "bitbucket": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "raw_message": "fix: git-cliff not taking valid token"
      },
      {
        "id": "d700f0b7de2d947d7224e8ea65dc67341098df95",
        "message": "add new change (#19)",
        "body": null,
        "footers": [],
        "group": "<!-- 0 -->🚀 Features",
        "breaking_description": null,
        "breaking": false,
        "scope": null,
        "links": [],
        "author": {
          "name": "Jose Luis Izquierdo",
          "email": "[email protected]",
          "timestamp": 1759247705
        },
        "committer": {
          "name": "GitHub",
          "email": "[email protected]",
          "timestamp": 1759247705
        },
        "conventional": true,
        "merge_commit": false,
        "extra": null,
        "github": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitlab": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "gitea": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "bitbucket": {
          "username": null,
          "pr_title": null,
          "pr_number": null,
          "pr_labels": [],
          "is_first_time": false
        },
        "raw_message": "feat: add new change (#19)"
      }
    ],
    "commit_id": "d700f0b7de2d947d7224e8ea65dc67341098df95",
    "timestamp": null,
    "previous": {
      "version": "v1.1.0",
      "message": null,
      "commits": [],
      "commit_id": "8c020d326dc3e0ff34e8535aaff53f7893c6a4f5",
      "timestamp": 1758896193,
      "previous": null,
      "repository": null,
      "commit_range": null,
      "submodule_commits": {},
      "statistics": null,
      "extra": null,
      "github": {
        "contributors": []
      },
      "gitlab": {
        "contributors": []
      },
      "gitea": {
        "contributors": []
      },
      "bitbucket": {
        "contributors": []
      }
    },
    "repository": "/Users/my-fake-user/Documents/repos/my-fake-org/my-fake-repo",
    "commit_range": {
      "from": "137f7fcfe9c6b1f0892400e51f63993a4cbd271a",
      "to": "d700f0b7de2d947d7224e8ea65dc67341098df95"
    },
    "submodule_commits": {},
    "statistics": {
      "commit_count": 4,
      "commits_timespan": 4,
      "conventional_commit_count": 4,
      "links": [],
      "days_passed_since_last_release": 5
    },
    "extra": null,
    "github": {
      "contributors": []
    },
    "gitlab": {
      "contributors": []
    },
    "gitea": {
      "contributors": []
    },
    "bitbucket": {
      "contributors": []
    }
  }
]

Software information

  • Operating system: MacOs
  • Rust version: rustc 1.90.0 (1159e78c4 2025-09-14)
  • Project version: git-cliff 2.10.1

Additional context

The behaviour is the same for my github runner which uses git-cliff installed through pipx.

Here you can check my configuration:

# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration


[changelog]
# A Tera template to be rendered for each release in the changelog.
# See https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
    ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
    ### {{ group | striptags | trim | upper_first }}
    {% for commit in commits %}
        - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
            {% if commit.breaking %}[**breaking**] {% endif %}\
            {{ commit.message | upper_first }}\
            {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif %}\
            {% if commit.remote.pr_number %} in #{{ commit.remote.pr_number }}{%- endif %}\
    {% endfor %}
{% endfor %}
"""
# Remove leading and trailing whitespaces from the changelog's body.
trim = true
# Render body even when there are no releases to process.
render_always = true
# An array of regex based postprocessors to modify the changelog.
postprocessors = [
    # Replace the placeholder <REPO> with a URL.
    #{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" },
]
# render body even when there are no releases to process
# render_always = true
# output file path
# output = "test.md"

[git]
# Parse commits according to the conventional commits specification.
# See https://www.conventionalcommits.org
conventional_commits = true
# Exclude commits that do not match the conventional commits specification.
filter_unconventional = false
# Require all commits to be conventional.
# Takes precedence over filter_unconventional.
require_conventional = true
# Split commits on newlines, treating each line as an individual commit.
split_commits = false
# An array of regex based parsers to modify commit messages prior to further processing.
commit_preprocessors = [
    # Replace issue numbers with link templates to be updated in `changelog.postprocessors`.
    #{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
    # Check spelling of the commit message using https://github.com/crate-ci/typos.
    # If the spelling is incorrect, it will be fixed automatically.
    #{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# Prevent commits that are breaking from being excluded by commit parsers.
protect_breaking_commits = true
# An array of regex based parsers for extracting data from the commit message.
# Assigns commits to groups.
# Optionally sets the commit's scope and can decide to exclude commits from further processing.
commit_parsers = [
    { message = "^feat", group = "<!-- 0 -->🚀 Features" },
    { message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
    { message = "^doc", group = "<!-- 3 -->📚 Documentation" },
    { message = "^perf", group = "<!-- 4 -->⚡ Performance" },
    { message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
    { message = "^style", group = "<!-- 5 -->🎨 Styling" },
    { message = "^test", group = "<!-- 6 -->🧪 Testing" },
    { message = "^chore\\(release\\): prepare for", skip = true },
    { message = "^chore\\(deps.*\\)", skip = true },
    { message = "^chore\\(pr\\)", skip = true },
    { message = "^chore\\(pull\\)", skip = true },
    { message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
    { message = "^Merge", skip = true },
    { body = ".*security", group = "<!-- 8 -->🛡️ Security" },
    { message = "^revert", group = "<!-- 9 -->◀️ Revert" },
    { message = ".*", group = "<!-- 10 -->💼 Other" },
]
# Exclude commits that are not matched by any commit parser.
filter_commits = false
# An array of link parsers for extracting external references, and turning them into URLs, using regex.
link_parsers = []
# Include only the tags that belong to the current branch.
use_branch_tags = false
# Order releases topologically instead of chronologically.
topo_order = false
# Order releases topologically instead of chronologically.
topo_order_commits = true
# Order of commits in each group/release within the changelog.
# Allowed values: newest, oldest
sort_commits = "oldest"
# Process submodules commits
recurse_submodules = false

How do I know that pr_number is empty? because if I run the following command with the exact same token:

gh pr list --state all --limit 5 --json number,title,headRefName,mergeCommit to list the last 5 PR in my repo

I obtain the following information:

[
  {
    "headRefName": "mybranch-1159_AT09",
    "mergeCommit": {
      "oid": "d700f0b7de2d947d7224e8ea65dc67341098df95"
    },
    "number": 19,
    "title": "feat: add new change"
  },
  {
    "headRefName": "mybranch-1159_AT08",
    "mergeCommit": {
      "oid": "791764780c053ededa6ca5d9f89fead1bc662d3c"
    },
    "number": 18,
    "title": "fix: git-cliff not taking valid token"
  },
  {
    "headRefName": "develop",
    "mergeCommit": null,
    "number": 17,
    "title": "Promote develop to main"
  },
  {
    "headRefName": "mybranch-1159_AT07",
    "mergeCommit": {
      "oid": "1b5485314695fc3364e340243d2452d5fa14483b"
    },
    "number": 16,
    "title": "add workflow for checking feature branches"
  },
  {
    "headRefName": "mybranch-1159_AT07",
    "mergeCommit": null,
    "number": 15,
    "title": "mybranch 1159 at07"
  }
]

And you can check that PR with number 18 has the oid 791764780c053ededa6ca5d9f89fead1bc662d3c that it's the same as the third commit. So I think that maybe the processing of the API information is not working properly.

Anyway, Thank you so much for this cool project!!!!! ❤️

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions