Skip to content

Commit cae81d3

Browse files
authored
👷 Update GitHub Action labeler to only add one label (#70)
1 parent 5f21ef2 commit cae81d3

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

.github/labeler.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
docs:
2-
- changed-files:
3-
- any-glob-to-any-file:
4-
- README.md
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- README.md
6+
- all-globs-to-all-files:
7+
- '!src/**'
8+
- '!pyproject.toml'
59

610
internal:
7-
- changed-files:
8-
- any-glob-to-any-file:
9-
- .github/**/*
10-
- scripts/**/*
11-
- .gitignore
12-
- .pre-commit-config.yaml
13-
- pdm_build.py
14-
- requirements*.txt
11+
- all:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- .github/**
15+
- scripts/**
16+
- .gitignore
17+
- .pre-commit-config.yaml
18+
- pdm_build.py
19+
- requirements*.txt
20+
- all-globs-to-all-files:
21+
- README.md
22+
- '!src/**'
23+
- '!pyproject.toml'

.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)