Skip to content

Specifying a changelog template is not working

Checklist

  • I'm using the latest version of the extension (Run glab --version) 1.32.0 (2023-09-06)
    • Extension version: Put your extension version here
  • Operating system and version: Ubuntu 22.04.2 LTS
  • Gitlab.com or self-managed instance? self-managed instance
  • GitLab version (if self-managed) 16.0.1 - revision 34d6370bacd (Use the version endpoint, like this: gitlab.my-company.com/api/v4/version)
  • I have performed glab auth status to check for authentication issues
$ glab auth status
gitlab.com
  x gitlab.com: api call failed: GET https://gitlab.com/api/v4/user: 401 {message: 401 Unauthorized}
  ✓ Git operations for gitlab.com configured to use ssh protocol.
  ✓ API calls for gitlab.com are made over https protocol
  ✓ REST API Endpoint: https://gitlab.com/api/v4/
  ✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
  x No token provided
<redacted>
  ✓ Logged in to <redacted> as sgareste (/root/.config/glab-cli/config.yml)
  ✓ Git operations for <redacted> configured to use ssh protocol.
  ✓ API calls for <redacted> are made over https protocol
  ✓ REST API Endpoint: https://<redacted>/api/v4/
  ✓ GraphQL Endpoint: https://<redacted>/api/graphql/
  ✓ Token: **************************

Summary

I want to use a custom changelog_config.yml file, but it is not taking it into account

Steps to reproduce

  • I create a changelog_config.yml containing the following:
---
template: |
  This will be static content

(I use a static sentence for demonstration, however changing the template to the default one with minor variations on static strings the result is the same)Screenshot_2023-09-19_at_15.04.37

  • I launch the following command: glab changelog generate --config-file ./changelog_config.yml

What is the current bug behavior?

The output is based on gitlab's default template

What is the expected correct behavior?

I should only have "This will be static content" in the output

Edited by 🤖 GitLab Bot 🤖