mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-09 20:28:07 +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
|
labels: enhancement
|
||||||
- title: 🐞 Bug fixes
|
- title: 🐞 Bug fixes
|
||||||
labels: fix
|
labels: fix
|
||||||
- title: ⚠️ Deprecations
|
# - title: ⚠️ Deprecations
|
||||||
labels: deprecation
|
# labels: deprecation
|
||||||
- title: 🛠️ Other improvements
|
- title: 🛠️ Other improvements
|
||||||
labels:
|
labels:
|
||||||
- documentation
|
- 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