Skip to content

Commit

Permalink
feat: auto-label PRs that contain db migrations (#26745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 23, 2024
1 parent 6a1ce6a commit 75a98af
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 75a98af

Please sign in to comment.