feat: auto-label PRs that contain db migrations (#26745)

This commit is contained in:
Maxime Beauchemin
2024-01-22 16:24:07 -08:00
committed by GitHub
parent 6a1ce6a704
commit 75a98af64b

View 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']
})