Skip to content

Commit 1dc66d8

Browse files
authored
👷 Update GitHub Action labeler to add only one label (fastapi#1304)
1 parent cc36fa7 commit 1dc66d8

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

.github/labeler.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
docs:
2-
- changed-files:
3-
- any-glob-to-any-file:
4-
- '**/*.md'
2+
- all:
3+
- changed-files:
4+
- all-globs-to-all-files:
5+
- '**/*.md'
56

67
internal:
7-
- changed-files:
8-
- any-glob-to-any-file:
9-
- .github/**/*
10-
- scripts/**/*
11-
- .gitignore
12-
- .pre-commit-config.yaml
8+
- all:
9+
- changed-files:
10+
- any-glob-to-any-file:
11+
- .github/**
12+
- scripts/**
13+
- .gitignore
14+
- .pre-commit-config.yaml
15+
- all-globs-to-all-files:
16+
- '**/*.md'
17+
- 'frontend/**'
18+
- 'backend/**'

.github/workflows/labeler.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pull Request Labeler and Checker
1+
name: Labels
22
on:
33
pull_request_target:
44
types:
@@ -17,13 +17,14 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/labeler@v5
20+
with:
21+
sync-labels: true
2022
# Run this after labeler applied labels
2123
check-labels:
2224
needs:
2325
- labeler
2426
permissions:
2527
pull-requests: read
26-
name: Check labels
2728
runs-on: ubuntu-latest
2829
steps:
2930
- uses: docker://agilepathway/pull-request-label-checker:latest

0 commit comments

Comments
 (0)