ci: update label and release action config (#1295)

* ci: update label and release action config
This commit is contained in:
Hexqi 2025-04-08 15:07:38 +08:00 committed by GitHub
parent cdf3914355
commit a67d5fb3ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 51 additions and 13 deletions

View File

@ -1,23 +1,56 @@
version: v1
labels:
- label: 'ignore-for-release'
sync: true
matcher:
title: '^[vV]?\d+(\.\d+){2}.*'
body: '#ignore'
- label: 'breaking-change'
sync: true
matcher:
title: '^.+!:|#breaking'
body: '#breaking'
- label: 'enhancement'
sync: true
matcher:
title: '^feat:.*'
- label: 'document'
sync: true
matcher:
title: '^docs:.*'
title: '^[fF]eat.*'
- label: 'bug'
sync: true
matcher:
title: '^fix:.*'
- label: 'ospp-2024'
title: '^[fF]ix.*'
- label: 'documentation'
sync: true
matcher:
baseBranch: '^ospp-2024/.*'
- label: 'refactor-main'
title: '^[dD](ocs|ocumentation).*'
files: 'docs/**/*.md'
- label: 'refactoring'
sync: true
matcher:
baseBranch: 'refactor/develop'
title: '^[rR]efactor.*'
- label: 'test'
sync: true
matcher:
title: '^[tT]est.*'
files: '**/__tests__/**'
- label: 'chore'
sync: true
matcher:
title: '^[cC]hore.*'
- label: 'ci'
sync: true
matcher:
title: '^[cC]i.*'
files: '.github/**'
- label: 'ospp'
sync: true
matcher:
baseBranch: '^ospp-\d+\/.*'
- label: '1.x'
sync: true
matcher:
baseBranch: '^v1\.x'
- label: 'release'
sync: true
matcher:
baseBranch: '^release\/v2.*'

11
.github/release.yml vendored
View File

@ -2,8 +2,6 @@ changelog:
exclude:
labels:
- ignore-for-release
authors:
- allcontributors[bot]
categories:
- title: Breaking Changes 🛠
labels:
@ -18,9 +16,16 @@ changelog:
labels:
- Semver-Patch
- bug
- title: Other Changes
- title: "📖 Documentation"
labels:
- documentation
- title: "🔧 Maintenance"
labels:
- refactoring
- test
- unit-test
- chore
- ci
- title: "Other Changes"
labels: ["*"]
collapse: true