👷 Update configs for GitHub Action labeler, to add only one label (#1072)

This commit is contained in:
Sebastián Ramírez 2024-08-14 14:02:07 -05:00 committed by GitHub
parent 714d795e90
commit 383938155f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 14 deletions

33
.github/labeler.yml vendored
View File

@ -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:
- '!sqlmodel/**'
- '!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/**'
- '!sqlmodel/**'
- '!pyproject.toml'

View File

@ -1,4 +1,4 @@
name: Pull Request Labeler and Checker
name: Labels
on:
pull_request_target:
types:
@ -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