mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
feat: auto-label PRs that contain db migrations (#26745)
This commit is contained in:
committed by
GitHub
parent
6a1ce6a704
commit
75a98af64b
25
.github/workflows/label-migration-pr.yml
vendored
Normal file
25
.github/workflows/label-migration-pr.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Label Migration PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'superset/migrations/**'
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Add label
|
||||
uses: actions/github-script@v3
|
||||
with:
|
||||
github-token: ${{github.token}}
|
||||
script: |
|
||||
github.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ['risk:db-migration']
|
||||
})
|
||||
Reference in New Issue
Block a user