Skip to content

Commit 3839381

Browse files
authored
👷 Update configs for GitHub Action labeler, to add only one label (#1072)
1 parent 714d795 commit 3839381

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

‎.github/labeler.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
docs:
2-
- changed-files:
3-
- any-glob-to-any-file:
4-
- docs/**/*
5-
- docs_src/**/*
2+
- all:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- docs/**
6+
- docs_src/**
7+
- all-globs-to-all-files:
8+
- '!sqlmodel/**'
9+
- '!pyproject.toml'
610

711
internal:
8-
- changed-files:
9-
- any-glob-to-any-file:
10-
- .github/**/*
11-
- scripts/**/*
12-
- .gitignore
13-
- .pre-commit-config.yaml
14-
- pdm_build.py
15-
- requirements*.txt
12+
- all:
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- .github/**
16+
- scripts/**
17+
- .gitignore
18+
- .pre-commit-config.yaml
19+
- pdm_build.py
20+
- requirements*.txt
21+
- all-globs-to-all-files:
22+
- '!docs/**'
23+
- '!sqlmodel/**'
24+
- '!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)