Comments (2)
That's exactly what I needed, thank you!
from git-cliff.
The --latest
flag basically takes the last 2 tags into account for determining a range to process the commits.
e.g. running git cliff --latest
is like running the following in your git repository:
$ git log --oneline fb1afd9..05361bc
05361bc (HEAD -> main, tag: versio-prev, tag: v4.0.15, origin/main, origin/HEAD) build(deploy): Versio update versions
70bd7ff fix: Update the changelog
(P.S. you can also specify a commit range for changelog generation: git cliff fb1afd9..05361bc
)
So git-cliff does not have any idea about the previous release (commits), it only knows what was the previous tag name (v4.0.14
) and the commit (fb1afd9
).
29db41a will now set the previous release data (only the tag name and commit) thus solve your issue.
$ cargo run -- --latest --workspace ~/gh/git-mit/
## Changelog
### [v4.0.15](https://github.com/PurpleBooth/git-mit/compare/v4.0.14...v4.0.15) (2021-08-14)
[fb1afd9](fb1afd98c2c290fee748c89fde064667f49b8cda)...[05361bc](05361bc6e5512477c838542aee17c1c585750144)
### Build
- Versio update versions ([05361bc](05361bc6e5512477c838542aee17c1c585750144))
### Fix
- Update the changelog ([70bd7ff](70bd7ffe55857940e898f5b97b34b2f62acd1c8e))
from git-cliff.
Related Issues (20)
- Fixture test script not working on Windows (MINGW64) HOT 3
- Is `ignore_tags` working as expected here?
- `--prepend` cannot reliably identify the previous header HOT 2
- Support bumping version based on configurable custom pattern HOT 1
- Docs unclear about Github token permissions HOT 3
- Add Nix Dev environment for easier reproducible dev envs HOT 2
- $ anchor in commit_preprocessors not works HOT 1
- Optional unconventional commit parsing into message/body/footer HOT 1
- allow limiting commits to scoped ones HOT 1
- --unreleased does not behave as expected with tags on side branches HOT 3
- merge identical commit messages HOT 2
- Allow the whole commit object to be used as a field inside of a commit parser HOT 2
- Bitbucket integration not working with self-hosted instance HOT 2
- Slow for large repositories with binary files in Git LFS and long history
- Config environment variables are not respected when cliff.toml is not found HOT 5
- Github integration is not run when printing context (`--context`) HOT 8
- Detailed template errors out with template render error HOT 2
- Change to MiniJinja HOT 8
- Regenerating changelog after taging changes the date
- [gitlab] context data are missing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-cliff.