mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 08:11:45 +00:00
feat(ci): add pr labeler and release drafter workflows
This commit is contained in:
parent
ee9bbccb16
commit
5734ca84a8
4
.github/release-drafter.yml
vendored
4
.github/release-drafter.yml
vendored
@ -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
20
.github/workflows/pr-labeler.yml
vendored
Normal 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
22
.github/workflows/release-drafter.yml
vendored
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user