You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -525,6 +525,21 @@ Similar to `REVIEWS`, `REFERENCED` PRs also offer special placeholders.
525
525
</p>
526
526
</details>
527
527
528
+
### Commit Template placeholders
529
+
530
+
Table of supported placeholders allowed to be used in the `commit_template` configuration, which will be included in the release notes / changelog. Applies to `HYBRID` and `COMMIT` modes only.
| `#{{CREATED_AT}}` | The ISO time of the commit. |
538
+
| `#{{MERGE_SHA}}` | The commit SHA. |
539
+
| `#{{AUTHOR}}` | The username of the commit Author. |
540
+
| `#{{AUTHOR_NAME}}` | The name of the commit Author (Can be empty). |
541
+
| `#{{BODY}}` | The commit message. |
542
+
528
543
### Configuration Specification
529
544
530
545
Table of descriptions for the `configuration.json` options to configure the resulting release notes / changelog.
@@ -543,12 +558,14 @@ Table of descriptions for the `configuration.json` options to configure the resu
543
558
| category.rules.pattern | A `regex` pattern to match the property value towards. Uses `RegExp.test("val")` |
544
559
| category.rules.flags | Defines the regex flags specified for the pattern. Default: `gu`. |
545
560
| category.rules.on_property | The PR property to match against. [Possible values](https://github.com/mikepenz/release-changelog-builder-action/blob/develop/src/configuration.ts#L33-L43). |
561
+
| category.mode | Defines if this category applies to PRs, commits or both. Allowed values: `PR`, `COMMIT`, `HYBRID`. Default: `HYBRID`. |
546
562
| ignore_labels | An array of labels, to match pull request labels against. If any PR label overlaps, the pull request will be ignored from the changelog. This takes precedence over category labels |
547
563
| sort | A `sort` specification, offering the ability to define sort order and property. |
| sort.on_property | The property to sort on. Allowed values: `mergedAt`, `title` |
550
566
| template | Specifies the global template to pick for creating the changelog. See [Template placeholders](#template-placeholders) for possible values |
551
567
| pr_template | Defines the per pull request template. See [PR Template placeholders](#pr-template-placeholders) for possible values |
568
+
| commit_template | Defines the per commit template. Used in `HYBRID` and `COMMIT` modes only. If empty, uses the template defined for `pr_template`. See [Commit Template placeholders](#commit-template-placeholders) for possible values. |
552
569
| empty_template | Template to pick if no changes are detected. See [Template placeholders](#template-placeholders) for possible values |
553
570
| label_extractor.\[{\<EXTRACTOR\>}\] | An array of `Extractor` specifications, offering a flexible API to extract additional labels from a PR. Please see the documentation related to [Regex Configuration](#regex-configuration) for more details. |
554
571
| duplicate_filter.{\<EXTRACTOR\>} | Defines the `Extractor` to use for retrieving the identifier for a PR. In case of duplicates will keep the last matching pull request (depends on `sort`). Please see the documentation related to [Regex Configuration](#regex-configuration) for more details. |
@@ -407,3 +408,185 @@ it('Default configuration with commit mode and custom placeholder', async () =>
407
408
`## 🚀 Features\n\n- add Bengali\n- add uzbek translation (#558)\n\n## 🐛 Fixes\n\n- Fix grammar and consistency in french translation (#546)\n- fix typo\n- Distinguish translations of 'Release/Publish'\n- fix translation typo for message (#567)\n\n## 📦 Other\n\n- new thi.ng links and descriptions\n- add link to git-changelog-command-line docker image\n- Add descriptions for commit types`
408
409
)
409
410
})
411
+
412
+
it('Default configuration with hybrid mode and classic categories',async()=>{
0 commit comments