Skip to content

Commit

Permalink
ci(github): update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
waset committed Oct 21, 2024
1 parent 9147be5 commit 7c8509b
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 24 deletions.
34 changes: 34 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# @see https://github.com/grafana/pr-labeler-action
#
# 是否将缺失的标签添加到存储库
add-missing-labels: true
# 是否从PR中删除先前存在的标签以支持生成的标签
clear-prexisting: true
# 添加标签时考虑PR提交消息
include-commits: false
# 添加标签时考虑公关标题
include-title: true
# 当消息具有破坏性更改语法时使用标签'!:',例如:'feat!:'
label-for-breaking-changes: break
# 标签到类型数组以进行映射
label-mapping:
# 增强
enhancement: [feat, feature]
# 修复
bugfix: [fix, bug]
# 维护
maintenance: [chore, perf, refactor, security, style]
# 文档
documentation: [docs]
# 依赖/构建
configuration: [config, deps, build, ci]
# 测试
test: [test]
# 其他
other:
- other
- misc
- types
- release
- revert
48 changes: 48 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name-template: 🏷 v$RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
categories:
- title: 🚀 新特性
labels:
- enhancement
- title: 🐛 修复
labels:
- bugfix
- title: 🧰 维护
labels:
- maintenance
- security
- title: 📝 文档
labels:
- documentation
- title: 📦 构建
labels:
- configuration
- title: 🚧 其他
labels:
- test
- other
change-template: '- $TITLE (#$NUMBER) @$AUTHOR\n - $BODY'
change-title-escapes: '\<*_`&'
exclude-contributors:
- renovate
- renovate[bot]
- dependabot
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
patch:
labels:
- patch
default: patch
template: |
## 更新日志
$CHANGES
## 贡献者
$CONTRIBUTORS
File renamed without changes.
14 changes: 14 additions & 0 deletions .github/workflows/label-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: PR Labelers
#
# @see https://github.com/grafana/pr-labeler-action
#
on:
pull_request:

jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- uses: grafana/pr-labeler-action@v0.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Drafter

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 7c8509b

Please sign in to comment.