mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
ci: auto-generate changelog (#100)
* ci: auto-generate changelog * cleanup
This commit is contained in:
parent
02fa0b7eb6
commit
19751ca8de
23
.chglog/CHANGELOG.tpl.md
Executable file
23
.chglog/CHANGELOG.tpl.md
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
{{ range .Versions -}}
|
||||||
|
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||||
|
|
||||||
|
{{ range .CommitGroups -}}
|
||||||
|
### {{ .Title }}
|
||||||
|
|
||||||
|
{{ range .Commits -}}
|
||||||
|
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- if .NoteGroups -}}
|
||||||
|
{{ range .NoteGroups -}}
|
||||||
|
### {{ .Title }}
|
||||||
|
|
||||||
|
{{ range .Notes }}
|
||||||
|
{{ .Body }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
25
.chglog/config.yml
Executable file
25
.chglog/config.yml
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
style: github
|
||||||
|
template: CHANGELOG.tpl.md
|
||||||
|
info:
|
||||||
|
title: CHANGELOG
|
||||||
|
repository_url: https://github.com/thegeeklab/ansible-later
|
||||||
|
options:
|
||||||
|
commit_groups:
|
||||||
|
title_maps:
|
||||||
|
feat: Features
|
||||||
|
fix: Bug Fixes
|
||||||
|
perf: Performance Improvements
|
||||||
|
refactor: Code Refactoring
|
||||||
|
chore: Others
|
||||||
|
test: Testing
|
||||||
|
ci: CI Pipeline
|
||||||
|
docs: Documentation
|
||||||
|
header:
|
||||||
|
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
||||||
|
pattern_maps:
|
||||||
|
- Type
|
||||||
|
- Scope
|
||||||
|
- Subject
|
||||||
|
notes:
|
||||||
|
keywords:
|
||||||
|
- BREAKING CHANGE
|
@ -158,6 +158,15 @@ local PipelineBuildPackage = {
|
|||||||
'cd dist/ && sha256sum * > ../sha256sum.txt',
|
'cd dist/ && sha256sum * > ../sha256sum.txt',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'changelog',
|
||||||
|
image: 'thegeeklab/git-chglog',
|
||||||
|
commands: [
|
||||||
|
'git fetch -tq',
|
||||||
|
'git-chglog --no-color --no-emoji ${DRONE_TAG:---next-tag unreleased unreleased}',
|
||||||
|
'git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'publish-github',
|
name: 'publish-github',
|
||||||
image: 'plugins/github-release',
|
image: 'plugins/github-release',
|
||||||
|
@ -177,6 +177,13 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- cd dist/ && sha256sum * > ../sha256sum.txt
|
- cd dist/ && sha256sum * > ../sha256sum.txt
|
||||||
|
|
||||||
|
- name: changelog
|
||||||
|
image: thegeeklab/git-chglog
|
||||||
|
commands:
|
||||||
|
- git fetch -tq
|
||||||
|
- git-chglog --no-color --no-emoji ${DRONE_TAG:---next-tag unreleased unreleased}
|
||||||
|
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
|
||||||
|
|
||||||
- name: publish-github
|
- name: publish-github
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
settings:
|
settings:
|
||||||
@ -635,6 +642,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: b3355b546c9c55cb7c83d1a6b2ae59ec4177e6495b050bc8ecae62bb7a61eceb
|
hmac: c4f9763ea636fbabd54c15e260559f1e1948fda7841ef5c2d3d62d860bd863f9
|
||||||
|
|
||||||
...
|
...
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -107,3 +107,5 @@ docs/themes/
|
|||||||
docs/public/
|
docs/public/
|
||||||
resources/_gen/
|
resources/_gen/
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CHANGELOG.md
|
||||||
|
24
CHANGELOG.md
24
CHANGELOG.md
@ -1,24 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
## v0.4.0 (2020-12-31)
|
|
||||||
|
|
||||||
### Fixes
|
|
||||||
|
|
||||||
- handle command module argv syntax, fixes [#47](https://github.com/thegeeklab/ansible-later/issues/47)
|
|
||||||
|
|
||||||
### Docs
|
|
||||||
|
|
||||||
- add contributing information
|
|
||||||
|
|
||||||
### Others
|
|
||||||
|
|
||||||
- **devel**: cleanup dev-dependencies
|
|
||||||
- replace master by main as default branch
|
|
||||||
- **docker**: switch to org.opencontainers image labels
|
|
||||||
- **docker**: use standalone dockerfiles for multiarch
|
|
||||||
- use renovate preset config
|
|
||||||
|
|
||||||
### Breaking Chnaged
|
|
||||||
|
|
||||||
- make ansible and ansible-base an optional extra dependency ([#53](https://github.com/thegeeklab/ansible-later/pull/53))
|
|
||||||
- drop Python 3.5 support
|
|
Loading…
Reference in New Issue
Block a user