|
4 | 4 |
|
5 | 5 | We using <https://github.com/git-chglog/git-chglog>, so refer to this side for installation instructions. |
6 | 6 |
|
| 7 | +It is possible to test the tool by `git-chglog --init` without overriding anything. |
| 8 | + |
7 | 9 | ## Usage |
8 | 10 |
|
9 | | -Example for a new release "v2.0.0": |
| 11 | +Example for a new release "v2.0.1": |
10 | 12 |
|
11 | 13 | ```sh |
| 14 | +git checkout release |
| 15 | +git pull |
12 | 16 | git fetch --tags |
13 | | -git-chglog --no-case --next-tag 2.0.0 v1.16.0.. > .chglog/chglog_tmp.md |
| 17 | +git checkout dev |
| 18 | +git pull upstream dev |
| 19 | +git-chglog --config .chglog/config_gobot.yml --no-case --next-tag v2.0.1 v2.0.0.. > .chglog/chglog_tmp.md |
14 | 20 | ``` |
15 | 21 |
|
16 | 22 | ## Compare |
17 | 23 |
|
18 | 24 | If unsure about any result of running git-chglog, just use: |
19 | | -`git log --since=2022-05-02 --pretty="- %s` |
| 25 | +`git log --since=2022-05-15 --pretty="- %s` |
20 | 26 |
|
21 | 27 | ## Manual adjustment |
22 | 28 |
|
23 | | -Because there is no commit style guide yet, some manual work is needed to bring the items in the correct position. |
24 | | -Please refer to the current CHANGELOG.md to find the correct way. In general we try to use this style: |
| 29 | +Most likely some manual work is needed to bring the items in the correct position. We use the style from |
| 30 | +["keep a changelog"](https://keepachangelog.com/en/1.1.0/), together with the [standard template](https://github.com/git-chglog/example-type-scope-subject/blob/master/CHANGELOG.standard.md). |
| 31 | +The changelog will be generated based on the commit messages, so please follow the |
| 32 | +[Convention for Pull Request Descriptions](../CONTRIBUTING.md). |
| 33 | + |
| 34 | +An example for the following commits: |
| 35 | + |
| 36 | +* type(scope): description |
| 37 | +* i2c(PCF8583): added |
| 38 | +* gpio(HD44780): fix wrong constants |
| 39 | +* raspi(PWM): refactor usage |
| 40 | +* docs(core): usage of Kernel driver |
| 41 | +* or alternative: core(docs): usage of Kernel driver |
| 42 | +* build(style): adjust rule for golangci-lint |
| 43 | + |
| 44 | +```md |
| 45 | +### build |
| 46 | + |
| 47 | +* **style**: adjust rule for golangci-lint |
| 48 | + |
| 49 | +### docs |
| 50 | + |
| 51 | +* **core**: usage of Kernel driver |
| 52 | + |
| 53 | +### i2c |
| 54 | + |
| 55 | +* **PCF8583**: added |
| 56 | + |
25 | 57 |
|
26 | | -* titles will be converted to lower case |
27 | | -* titles are lexical ordered |
28 | | -* each platform has its own title (e.g. **raspi**) |
29 | | -* fixes has the title **bugfix** |
30 | | -* title **api**, **drivers** or **example** is used for changes below related folder |
31 | | -* title **core** is used for changes of common code, e.g. utilities, system |
32 | | -* further special titles **build**, **docs** and **test** can be used |
| 58 | +### gpio |
| 59 | + |
| 60 | +* **HD44780**: fix wrong constants |
| 61 | + |
| 62 | +### raspi |
| 63 | + |
| 64 | +* **PWM**: refactor usage |
| 65 | + |
| 66 | +### Type |
| 67 | + |
| 68 | +* **scope:** description |
| 69 | +``` |
| 70 | + |
| 71 | +If in doubt, please refer to the current CHANGELOG.md to find the correct way. |
33 | 72 |
|
34 | 73 | ## Finalization |
35 | 74 |
|
36 | 75 | After all work is done in the temporary changelog file, the content can be moved to the real one and the "chglog_tmp.md" |
37 | 76 | file can be removed. |
38 | | - |
39 | | -## TODO's |
40 | | - |
41 | | -* introduce a commit style guide |
42 | | -* convert the changelog format to a more common style, see <https://github.com/git-chglog/example-type-scope-subject/tree/master> |
|
0 commit comments