Browse Source

👷🏻 Update Labeler GitHub Actions (#12019)

pull/11942/head
Sebastián Ramírez 9 months ago
committed by GitHub
parent
commit
9f57ecd41f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 39
      .github/labeler.yml
  2. 5
      .github/workflows/labeler.yml

39
.github/labeler.yml

@ -1,23 +1,34 @@
docs: docs:
- changed-files: - all:
- any-glob-to-any-file: - changed-files:
- docs/en/docs/**/* - any-glob-to-any-file:
- docs_src/**/* - docs/en/docs/**
- docs_src/**
- all-globs-to-all-files:
- '!fastapi/**'
- '!pyproject.toml'
lang-all: lang-all:
- all: - all:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- docs/*/docs/**/* - docs/*/docs/**
- all-globs-to-all-files: - all-globs-to-all-files:
- '!docs/en/docs/**/*' - '!docs/en/docs/**'
- '!fastapi/**'
- '!pyproject.toml'
internal: internal:
- changed-files: - all:
- any-glob-to-any-file: - changed-files:
- .github/**/* - any-glob-to-any-file:
- scripts/**/* - .github/**
- .gitignore - scripts/**
- .pre-commit-config.yaml - .gitignore
- pdm_build.py - .pre-commit-config.yaml
- requirements*.txt - pdm_build.py
- requirements*.txt
- all-globs-to-all-files:
- '!docs/*/docs/**'
- '!fastapi/**'
- '!pyproject.toml'

5
.github/workflows/labeler.yml

@ -1,4 +1,4 @@
name: Pull Request Labeler and Checker name: Labels
on: on:
pull_request_target: pull_request_target:
types: types:
@ -17,13 +17,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/labeler@v5 - uses: actions/labeler@v5
with:
sync-labels: true
# Run this after labeler applied labels # Run this after labeler applied labels
check-labels: check-labels:
needs: needs:
- labeler - labeler
permissions: permissions:
pull-requests: read pull-requests: read
name: Check labels
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: docker://agilepathway/pull-request-label-checker:latest - uses: docker://agilepathway/pull-request-label-checker:latest

Loading…
Cancel
Save