Skip to content
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
20 changes: 12 additions & 8 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: 💥 Breaking changes
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: ⚡️ Improvements
- breaking
- title: New Features 🎉
labels:
- enhancement
- documentation
- title: 👨‍🔧 Fixes
- feature
- title: Fixes 🔧
labels:
- bugs
- title: 🎨 Other changes
- fix
- title: Other Changes
labels:
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/conventional-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
on:
pull_request:
name: conventional-release-labels
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: bcoe/conventional-release-labels@v1
with:
type_labels: '{"feat": "feature", "fix": "fix", "breaking": "breaking", "ci": "CI"}'
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on:
push:
tags:
- "v*.*.*"


permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
token: "${{ secrets.GITHUB_TOKEN }}"
17 changes: 15 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go
Expand All @@ -20,5 +19,19 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Format check
run: test -z "$(go fmt)"
- name: Test
run: go test ./...
lint-commit:
runs-on: ubuntu-latest
name: "Lint commit message"
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install commitizen
run: |
python -m pip install --upgrade pip
python -m pip install commitizen
- name: Check commit message
run: cz check --rev-range HEAD
Loading