thoth-station / kebechet

I'm Kebechet bot, goddess of freshness - I will keep your source code fresh and up-to-date
24 stars 20 forks source link

Add commit hashes to the changelog entries #1001

Closed codificat closed 2 years ago

codificat commented 2 years ago

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:

>>> 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'
sesheta commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KPostOffice

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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