feat(ci): add pr labeler and release drafter workflows

This commit is contained in:
FangYin Cheng 2023-09-06 16:26:42 +08:00
parent ee9bbccb16
commit 5734ca84a8
3 changed files with 44 additions and 2 deletions

View File

@ -7,8 +7,8 @@ categories:
labels: enhancement
- title: 🐞 Bug fixes
labels: fix
- title: ⚠️ Deprecations
labels: deprecation
# - title: ⚠️ Deprecations
# labels: deprecation
- title: 🛠️ Other improvements
labels:
- documentation

20
.github/workflows/pr-labeler.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Pull request labeler
on:
pull_request_target:
types: [opened, edited]
permissions:
contents: read
pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Label pull request
uses: release-drafter/release-drafter@v5
with:
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

22
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Update draft releases
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Draft DB-GPT release
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}