👷 Update GitHub Action labeler to add only one label (#1304)

This commit is contained in:
Sebastián Ramírez
2024-08-14 14:12:29 -05:00
committed by GitHub
parent 0f082d1265
commit de57a7bac1
2 changed files with 18 additions and 11 deletions

12
.github/labeler.yml vendored
View File

@@ -1,12 +1,18 @@
docs: docs:
- all:
- changed-files: - changed-files:
- any-glob-to-any-file: - all-globs-to-all-files:
- '**/*.md' - '**/*.md'
internal: internal:
- all:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- .github/**/* - .github/**
- scripts/**/* - scripts/**
- .gitignore - .gitignore
- .pre-commit-config.yaml - .pre-commit-config.yaml
- all-globs-to-all-files:
- '**/*.md'
- 'frontend/**'
- 'backend/**'

View File

@@ -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