Skip to content

Commit

Permalink
👷 Update labeler GitHub Action to add only one label (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Aug 14, 2024
1 parent 0cca55c commit c57f1f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
33 changes: 21 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
docs:
- changed-files:
- any-glob-to-any-file:
- docs/**/*
- docs_src/**/*
- all:
- changed-files:
- any-glob-to-any-file:
- docs/**
- docs_src/**
- all-globs-to-all-files:
- '!typer/**'
- '!pyproject.toml'

internal:
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- scripts/**/*
- .gitignore
- .pre-commit-config.yaml
- pdm_build.py
- requirements*.txt
- all:
- changed-files:
- any-glob-to-any-file:
- .github/**
- scripts/**
- .gitignore
- .pre-commit-config.yaml
- pdm_build.py
- requirements*.txt
- all-globs-to-all-files:
- '!docs/**'
- '!typer/**'
- '!pyproject.toml'
5 changes: 3 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request Labeler and Checker
name: Labels
on:
pull_request_target:
types:
Expand All @@ -17,13 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
sync-labels: true
# Run this after labeler applied labels
check-labels:
needs:
- labeler
permissions:
pull-requests: read
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
Expand Down

0 comments on commit c57f1f7

Please sign in to comment.