Skip to content

Commit

Permalink
feat: configuring an extensible PR auto-labeler (#26880)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 30, 2024
1 parent 7e3d01d commit f4473af
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 25 deletions.
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"risk:db-migration":
- changed-files:
- any-glob-to-any-file:
- 'superset/migrations/**'

"dependencies:python":
- changed-files:
- any-glob-to-any-file:
- 'superset/requirements/**'

"dependencies:npm":
- changed-files:
- any-glob-to-any-file:
- 'superset-frontend/package.json'
- 'superset-frontend/package-lock.json'

"doc":
- changed-files:
- any-glob-to-any-file:
- 'docs/**'
25 changes: 0 additions & 25 deletions .github/workflows/label-migration-pr.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
1 change: 1 addition & 0 deletions superset/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

import logging
import urllib.parse
from logging.config import fileConfig
Expand Down

0 comments on commit f4473af

Please sign in to comment.