Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: replace git-chglog by git-sv #449

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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