-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'hallmark add' command (or similar) #84
Comments
Maybe even have a |
To make this easier I'd first like to do #82 (so that we don't have to compute a diff url for the newly added release) and #81 (to simplify sorting). I assume that if the version in Not sure I fully understand the benefit of |
Related, I've been wondering about the scope of hallmark. Is it a linter, or a changelog tool? We could fork hallmark into a separate tool for changelogs (the generated content would still follow the hallmark style, but potentially that could be configurable). |
I was a bit confused there. For some reason I didn't use Maybe |
Hmm. There's some issue while doing |
I like I think both these commands could use a |
Sounds lovely! |
I want to make it a subcommand, for extensibility and to make it clear that it operates on the changelog. And just rename Add new minor version or existing version to changelog:
Create a changelog from scratch, either full, without content or limiting versions:
|
Existing behavior remains the same, so `hallmark cc add <target>` does the same as `hallmark bump <target>` did. The new command is more generic however: it also supports inserting a release into the changelog for an existing version (regardless of whether that version is first, last or somewhere in the middle). In addition, there's a new option `--no-commits` to skip populating the release with commits. Effectively only creating a markdown heading (with a version number, link and date). Closes #84
Previously, `hallmark bump <target>` would add a release to `CHANGELOG.md` and fix `*.md` files. Any further arguments were taken as file arguments, overriding the default `*.md` pattern. Now, `hallmark cc add <target>` only touches `CHANGELOG.md` and accepts multiple targets: `hallmark cc add 1.1.0 1.2.0` will add two releases to `CHANGELOG.md`. Ref #84
Previously, `hallmark bump <target>` would add a release to `CHANGELOG.md` and fix `*.md` files. Any further arguments were taken as file arguments, overriding the default `*.md` pattern. Now, `hallmark cc add <target>` only touches `CHANGELOG.md` and accepts multiple targets: `hallmark cc add 1.1.0 1.2.0` will add two releases to `CHANGELOG.md`. Ref #84
When building up a changelog from scratch for an existing project with already existing history it would be handy to be able to do e.g.
hallmark add x.y.z
which would prepend an empty section just likehallmark bump
but with the given version number. You could also havehallmark add patch | minor | major
.Once the changelog has been built, then you'd start using
hallmark bump
from there.The text was updated successfully, but these errors were encountered: