This adds short commit hashes to the changelog entries, by modifying the formatting string passed to git log from %s to %h %s
Description
Example output:
>>> from git import Repo
>>> from kebechet.managers.version.utils import _compute_changelog
>>> repo = Repo()
>>> from thoth.glyph import MLModel, Format
>>> changelog = _compute_changelog(repo, 'v1.7.3', 'HEAD', True, MLModel.DEFAULT.name, Format.DEFAULT.name, 'v1.7.3')
>>> for entry in changelog:
... print(entry)
...
### Features
* d1003c7 Add commit hashes to the changelog entries
* 8455bf8 :arrow_up: Automatic update of dependencies by Kebechet for the rhel-8 environment
* cd7fbf5 :arrow_up: Automatic update of dependencies by Kebechet for the rhel-8 environment
* 1268243 :medal_sports: set badges for easy access to content
* aec4de6 :arrow_up: Automatic update of dependencies by Kebechet for the rhel-8 environment
* 28b8f92 :arrow_up: Automatic update of dependencies by Kebechet for the rhel-8 environment
* 4f53d80 :arrow_up: Automatic update of dependencies by Kebechet for the rhel-8 environment (#984)
### Improvements
* f7177ee use consistent name for 'has_prev_release'
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/thoth-station/kebechet/blob/master/OWNERS)~~ [KPostOffice]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
Related Issues and Dependencies
Resloves #150
This introduces a breaking change
No
This Pull Request implements
This adds short commit hashes to the changelog entries, by modifying the formatting string passed to
git log
from%s
to%h %s
Description
Example output: