Skip to content

Commit

Permalink
fix: align changie config
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonhull committed Jan 25, 2024
1 parent 7e7fd97 commit 8854405
Showing 1 changed file with 18 additions and 48 deletions.
66 changes: 18 additions & 48 deletions .changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,29 @@ versionExt: md
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}'
kindFormat: '### {{.Kind}}'
changeFormat: '- {{ .Body -}}'
footerFormat: |
{{- $azureBoardsFixed := customs .Changes "azure-boards-workitemid-fixed" | compact | uniq }}
{{ $azureBoardsRelated := customs .Changes "azure-boards-workitemid-related" | compact | uniq }}
{{ $GitHubLinks := customs .Changes "github-link" | compact | uniq }}
{{ $GitHubContributors := customs .Changes "github-contributor" | compact | uniq -}}
### Related
{{ range $azureBoardsFixed }}
- fixes AB#{{.}}
{{- end -}}
{{ range $azureBoardsRelated }}
- related AB#{{.}}
{{- end -}}
{{ range $GitHubLinks }}
- <{{.}}>
{{- end }}
{{ with $GitHubContributors }}
### Contributors
{{ range $GitHubContributors }}
- [{{.}}](https://github.com/{{.}})
{{ end }}
{{ end }}
body:
block: true
kinds:
- label: πŸŽ‰ Feature
- label: πŸ”¨ Refactor
- label: πŸ€– CI & Build
auto: patch
- label: πŸŽ‰ New Product Feature
auto: minor
- label: ⬇️ Deprecated
auto: minor
- label: πŸ§ͺ Tests
auto: patch
- label: πŸ”¨ Refactor
auto: patch
- label: πŸ› Bug Fix
auto: patch
- label: πŸ”₯ Breaking Change
auto: minor
- label: πŸ”’ Security
auto: patch
- label: ⬆️ Dependencies
- label: πŸ€– Development
auto: patch
- label: πŸ”₯ Major Version Change (Breaking Changes)
auto: major
newlines:
afterChange: 0
afterChangelogHeader: 1
Expand All @@ -57,27 +48,6 @@ newlines:
beforeFooterTemplate: 0
beforeHeaderFile: 0
beforeHeaderTemplate: 0
beforeKind: 0
beforeKind: 1
beforeVersion: 0
endOfVersion: 0

custom:
- key: github-contributor
type: string
minLength: 3
optional: true
- key: github-link
label: GitHub Link
type: string
minLength: 3
optional: true
- key: azure-boards-workitemid-fixed
label: FIXED Azure Boards WorkItem ID
type: int
minLength: 6
optional: true
- key: azure-boards-workitemid-related
label: Related Azure Boards WorkItem ID
type: int
minLength: 6
optional: true

0 comments on commit 8854405

Please sign in to comment.