-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add release-notes target (#1734)
* feat: add release-notes target * chore(makefile): add template and sv4git config
- Loading branch information
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: "1.1" #config version | ||
|
||
tag: | ||
pattern: "v%d.%d.%d" | ||
|
||
release-notes: | ||
sections: # Array with each section of release note. Check template section for more information. | ||
- name: Features # Name used on section. | ||
section-type: commits # Type of the section, supported types: commits, breaking-changes. | ||
commit-types: [feat] # Commit types for commit section-type, one commit type cannot be in more than one section. | ||
- name: Bug Fixes | ||
section-type: commits | ||
commit-types: [fix, bug] | ||
- name: Changes | ||
section-type: commits | ||
commit-types: [chore, docs, build, refactor, docker] | ||
|
||
commit-message: | ||
|
||
issue: | ||
regex: '#[0-9]+' # Regex for issue id. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## {{if .Release}}{{.Release}}{{end}}{{if and (not .Date.IsZero) .Release}} ({{end}}{{timefmt .Date "2006-01-02"}}{{if and (not .Date.IsZero) .Release}}){{end}} | ||
{{- range $section := .Sections }} | ||
{{- if (eq $section.SectionType "commits") }} | ||
{{- template "rn-md-section-commits.tpl" $section }} | ||
{{- else if (eq $section.SectionType "breaking-changes")}} | ||
{{- template "rn-md-section-breaking-changes.tpl" $section }} | ||
{{- end}} | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{- if .}}{{- if ne .SectionName ""}} | ||
|
||
### {{.SectionName}} | ||
{{range $k,$v := .Items}} | ||
- {{if $v.Message.Scope}}**{{$v.Message.Scope}}:** {{end}}{{$v.Message.Description}} ([{{$v.Hash}}](https://github.com/waku-org/nwaku/commit/{{$v.Hash}})){{if $v.Message.Metadata.issue}} ([https://github.com/waku-org/nwaku/issues/{{$v.Message.Metadata.issue}}]({{$v.Message.Metadata.issue}})){{end}} | ||
{{- end}} | ||
{{- end}}{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters