Skip to content

Commit e1bc290

Browse files
committed
release(v0.2.0-alpha.1): prepare release
This is the official v0.2.0-alpha.1 release. Signed-off-by: Spencer Smith <[email protected]>
1 parent 095596f commit e1bc290

File tree

4 files changed

+116
-0
lines changed

4 files changed

+116
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
<a name="v0.2.0-alpha.1"></a>
3+
## [v0.2.0-alpha.1](https://github.com/talos-systems/talos/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2020-08-17)
4+
5+
### Chore
6+
7+
* update to new talos modules
8+
* update drone pipeline type
9+
* update talos pkg import
10+
11+
### Fix
12+
13+
* ensure proper ownership of certs
14+
* ensure machine configs work in packet
15+

hack/chglog/CHANGELOG.tpl.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{ range .Versions }}
2+
<a name="{{ .Tag.Name }}"></a>
3+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
4+
5+
{{ range .CommitGroups -}}
6+
### {{ .Title }}
7+
8+
{{ range .Commits -}}
9+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
10+
{{ end }}
11+
{{ end -}}
12+
13+
{{- if .NoteGroups -}}
14+
{{ range .NoteGroups -}}
15+
### {{ .Title }}
16+
17+
{{ range .Notes }}
18+
{{ .Body }}
19+
{{ end }}
20+
{{ end -}}
21+
{{ end -}}
22+
{{ end -}}

hack/chglog/config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/talos-systems/talos
6+
options:
7+
commits:
8+
# filters:
9+
# Type:
10+
# - feat
11+
# - fix
12+
# - perf
13+
# - refactor
14+
commit_groups:
15+
# title_maps:
16+
# feat: Features
17+
# fix: Bug Fixes
18+
# perf: Performance Improvements
19+
# refactor: Code Refactoring
20+
header:
21+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
22+
pattern_maps:
23+
- Type
24+
- Scope
25+
- Subject
26+
notes:
27+
keywords:
28+
- BREAKING CHANGE

hack/release.sh

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
function changelog {
6+
if [ "$#" -eq 1 ]; then
7+
git-chglog --output CHANGELOG.md -c ./hack/chglog/config.yml --tag-filter-pattern "^${1}" "${1}.0-alpha.1.."
8+
elif [ "$#" -eq 0 ]; then
9+
git-chglog --output CHANGELOG.md -c ./hack/chglog/config.yml
10+
else
11+
echo 1>&2 "Usage: $0 changelog [tag]"
12+
exit 1
13+
fi
14+
}
15+
16+
function cherry-pick {
17+
if [ $# -ne 2 ]; then
18+
echo 1>&2 "Usage: $0 cherry-pick <commit> <branch>"
19+
exit 1
20+
fi
21+
22+
git checkout $2
23+
git fetch
24+
git rebase upstream/$2
25+
git cherry-pick -x $1
26+
}
27+
28+
function commit {
29+
if [ $# -ne 1 ]; then
30+
echo 1>&2 "Usage: $0 commit <tag>"
31+
exit 1
32+
fi
33+
34+
git commit -s -m "release($1): prepare release" -m "This is the official $1 release."
35+
}
36+
37+
if declare -f "$1" > /dev/null
38+
then
39+
cmd="$1"
40+
shift
41+
$cmd "$@"
42+
else
43+
cat <<EOF
44+
Usage:
45+
commit: Create the official release commit message.
46+
cherry-pick: Cherry-pick a commit into a release branch.
47+
changelog: Update the specified CHANGELOG.
48+
EOF
49+
50+
exit 1
51+
fi

0 commit comments

Comments
 (0)