Description
I encountered issues when using changie to create and merge changelog entries:
-
Creating a Changelog Entry:
- When I attempt to create a new changelog entry with the command
changie new, I receive the following error message: Error: project missing but required.
- This error occurs despite having projects defined in the configuration file.
- However, if I specify the project using the
-j parameter, I can successfully create the changelog entry without any issues.
-
Merging Changelog Entries:
- When I attempt to merge changelog entries using the command
changie merge, I encounter the following error message: Error: reading files from '.changes/backend': open .changes/backend: no such file or directory.
Reproduction Steps
- Run changie new without specifying a project using
-j.
- Observe the error message regarding the missing project.
- Run
changie new -j <project-name> to create an entry successfully.
- Attempt to merge entries with
changie merge.
- Observe the error regarding the missing directory.
Expected behavior
- The
changie new command should create a changelog entry without requiring the -j parameter
- The
changie merge command should successfully merge changelog entries without directory errors.
Additional context
- changie version v1.21.0
- Environment: macOS 15 / Homebrew
- .changie.yml
changesDir: .changes
unreleasedDir: unreleased
headerPath: header.tpl.md
changelogPath: CHANGELOG.md
versionExt: md
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}'
kindFormat: '### {{.Kind}}'
changeFormat: '* {{.Body}}'
envPrefix: CHANGIE_
projectsVersionSeparator: ': '
projects:
- label: Backend
key: backend
changelog: apps/backend/CHANGELOG.md
- label: Frontend
key: frontend
changelog: apps/frontend/CHANGELOG.md
- label: Common
key: common
changelog: packages/common/CHANGELOG.md
kinds:
- label: Added
auto: minor
- label: Changed
auto: patch
- label: Deprecated
auto: minor
- label: Removed
auto: major
- label: Fixed
auto: patch
- label: Security
auto: patch
newlines:
afterChangelogHeader: 1
beforeChangelogVersion: 1
endOfVersion: 1
Description
I encountered issues when using
changieto create and merge changelog entries:Creating a Changelog Entry:
changie new, I receive the following error message:Error: project missing but required.-jparameter, I can successfully create the changelog entry without any issues.Merging Changelog Entries:
changie merge, I encounter the following error message:Error: reading files from '.changes/backend': open .changes/backend: no such file or directory.Reproduction Steps
-j.changie new -j <project-name>to create an entry successfully.changie merge.Expected behavior
changie newcommand should create a changelog entry without requiring the-jparameterchangie mergecommand should successfully merge changelog entries without directory errors.Additional context