Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(changelog): add
--sort
argument for sorting commits (#15)
* refactor(changelog): sort commits by newest in CHANGELOG Previously, cliff was sorting the commits by oldest first. Like: ``` - Support parsing the missing scopes with `default_scope` (#8) - Support generating a changelog scoped to a directory (#11) ``` As the PR numbers indicate, the first bullet point is definitely older than the latter. With this update, it will look like this: ``` - Support generating a changelog scoped to a directory (#11) - Support parsing the missing scopes with `default_scope` (#8) ``` Signed-off-by: Taylan Dogan <[email protected]> * refactor: add sorting flag I don't expect any other sorting types will be added so the logic consist of checking whether it is `newest` or not. One could argue with why wouldn't I make this a boolean. My answer would be, in my opinion, it lose its meaning because this is not something we want to enable or disable but something that we want to decide which pattern we want to use. So it is more like a semantic choice. Signed-off-by: Taylan Dogan <[email protected]> * docs(readme): move the explanation of sort flag to README.md Co-authored-by: orhun <[email protected]>
- Loading branch information