Skip to content

Commit

Permalink
feat: auto-label PRs that contain db migrations (apache#26745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and sfirke committed Mar 22, 2024
1 parent 0423561 commit 0d4df8b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/label-migration-pr.yml
Original file line number Diff line number Diff line change
@@ -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']
})

0 comments on commit 0d4df8b

Please sign in to comment.