Skip to content

Commit

Permalink
ci: replace git-chglog by git-sv (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Oct 19, 2023
1 parent 1bf3ebf commit 928e7e8
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 59 deletions.
23 changes: 0 additions & 23 deletions .chglog/CHANGELOG.tpl.md

This file was deleted.

25 changes: 0 additions & 25 deletions .chglog/config.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .gitsv/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
version: "1.1"

versioning:
update-major: []
update-minor: [feat]
update-patch: [fix, perf, refactor, chore, test, ci, docs]

tag:
pattern: "v%d.%d.%d"

release-notes:
sections:
- name: Features
commit-types: [feat]
section-type: commits
- name: Bug Fixes
commit-types: [fix]
section-type: commits
- name: Performance Improvements
commit-types: [perf]
section-type: commits
- name: Code Refactoring
commit-types: [refactor]
section-type: commits
- name: Others
commit-types: [chore]
section-type: commits
- name: Testing
commit-types: [test]
section-type: commits
- name: CI Pipeline
commit-types: [ci]
section-type: commits
- name: Documentation
commit-types: [docs]
section-type: commits
- name: Breaking Changes
section-type: breaking-changes

commit-message:
footer:
issue:
key: issue
add-value-prefix: "#"
issue:
regex: "#?[0-9]+"
18 changes: 7 additions & 11 deletions .woodpecker/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ steps:
assets:
image: docker.io/library/node:lts
commands:
- git fetch -tq
- git fetch --depth=2147483647
- npm install > /dev/null
- npm run build
- cat VERSION
Expand All @@ -30,17 +30,13 @@ steps:
commands:
- cd dist/ && sha256sum * > ../sha256sum.txt

changelog-generate:
image: quay.io/thegeeklab/git-chglog
changelog:
image: quay.io/thegeeklab/git-sv
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${CI_COMMIT_TAG:---next-tag unreleased unreleased}

changelog-format:
image: quay.io/thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
- git fetch --depth=2147483647
- git sv current-version
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
- cat CHANGELOG.md

publish-github:
image: docker.io/plugins/github-release
Expand Down

0 comments on commit 928e7e8

Please sign in to comment.