Skip to content

Commit

Permalink
fix: apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak committed May 26, 2021
1 parent 2604697 commit 7fa0cb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .chglog/CHANGELOG-LINK.tpl.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# CHANGELOG LINK
This is CHANGELOG after this repository was forked from CosmWasm/cosmwasm.
{{ range .Versions }}
## {{ if .Tag.Previous }}{{ .Tag.Name }}{{ else }}{{ .Tag.Name }}{{ end }}
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} ([{{.Hash.Short}}](https://github.com/line/cosmwasm/commit/{{.Hash.Short}}))
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
Expand All @@ -16,4 +16,4 @@ This is CHANGELOG after this repository was forked from CosmWasm/cosmwasm.
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
4 changes: 3 additions & 1 deletion .chglog/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ info:
title: CHANGELOG
repository_url: https://github.com/line/cosmwasm
options:
tag_filter_pattern: '^v\d+\.\d+\.\d+-\d+\.\d+\.\d+'
commits:
filters:
Type:
Expand All @@ -18,9 +19,10 @@ options:
perf: Performance Improvements
refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: changelog

on:
pull_request:
types: [opened]

jobs:
changelog:
Expand Down Expand Up @@ -30,6 +31,6 @@ jobs:
- name: Merge CHANGELOG-LINK.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Update CHANGELOG-LINK.md"
commit_message: "docs(changelog): update changelog for v${{ steps.get_version.outputs.VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7fa0cb1

Please sign in to comment.