Skip to content

Commit

Permalink
Merge pull request #3 from gsantoro/feature/changie
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantoro authored Sep 4, 2022
2 parents d7c7fc3 + 4e06241 commit d228f39
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changes/header.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).
Empty file added .changes/unreleased/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions .changes/v0.1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## v0.1.0 - 2022-09-03
### Added
* Added go-releaser
3 changes: 3 additions & 0 deletions .changes/v0.2.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## v0.2.0 - 2022-09-04
### Added
* added changie
19 changes: 19 additions & 0 deletions .changie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
changesDir: .changes
unreleasedDir: unreleased
headerPath: header.tpl.md
changelogPath: CHANGELOG.md
versionExt: md
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}'
kindFormat: '### {{.Kind}}'
changeFormat: '* {{.Body}}'
kinds:
- label: Added
- label: Changed
- label: Deprecated
- label: Removed
- label: Fixed
- label: Security
newlines:
afterChangelogHeader: 1
beforeChangelogVersion: 1
endOfVersion: 1
12 changes: 7 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ checksum:
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
skip: false
# changelog:
# sort: asc
# filters:
# exclude:
# - '^docs:'
# - '^test:'
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).


## v0.2.0 - 2022-09-04
### Added
* added changie

## v0.1.0 - 2022-09-03
### Added
* Added go-releaser
24 changes: 23 additions & 1 deletion tools/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ tasks:
cmds:
- pre-commit run --all-files


# changie
changie-deps:
cmds:
- brew tap miniscruff/changie https://github.com/miniscruff/changie
- brew install changie

changie-init:
dir: ../
cmds:
- changie init

changie-minor:
dir: ../
cmds:
- changie new
- changie batch minor
- changie merge

# go-releaser
releaser-install:
cmds:
Expand All @@ -58,9 +77,12 @@ tasks:

releaser-run:
dir: ../
vars:
LATEST_VERSION:
sh: changie latest
cmds:
# - goreleaser release --snapshot --rm-dist
- goreleaser release
- GORELEASER_CURRENT_TAG="$(changie latest)" goreleaser release --release-notes="changes/{{.LATEST_VERSION}}" --skip-validate --rm-dist

releaser-check:
dir: ../
Expand Down

0 comments on commit d228f39

Please sign in to comment.