Skip to content

Commit 5182e4a

Browse files
authored
Merge pull request #132 from a5chin/feature/labeler
Add labeler
2 parents 68fc724 + f16286e commit 5182e4a

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.github/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
documentation:
2+
- changed-files:
3+
- any-glob-to-any-file: "docs/**"
4+
5+
feature:
6+
- head-branch: ["^feature/"]
7+
8+
fix:
9+
- head-branch: ["^fix/"]
10+
11+
hotfix:
12+
- head-branch: ["^hotfix/"]
13+
14+
release:
15+
- head-branch: ["^release/"]

.github/workflows/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pull Request Labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
labeler:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/labeler@v6

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ GitHub Actions workflows in `.github/workflows/`:
235235
- **docker.yml**: Validate Docker build
236236
- **devcontainer.yml**: Validate Dev Container configuration
237237
- **format.yml**: Check Ruff formatting
238+
- **labeler.yml**: Add label in GitHub
238239
- **lint.yml**: Run Pyright + Ruff linting
239240
- **test.yml**: Run pytest with coverage
240241
- **gh-deploy.yml**: Deploy documentation to GitHub Pages

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ Automated workflows ensure code quality and consistency. All workflows run on pu
342342
| `docker.yml` | Validate Docker build | Docker |
343343
| `devcontainer.yml` | Validate Dev Container configuration | devcontainer CLI |
344344
| `format.yml` | Check code formatting | Ruff |
345+
| `labeler.yml` | Add label in GitHub | GitHub |
345346
| `lint.yml` | Run static analysis | Pyright, Ruff |
346347
| `test.yml` | Run test suite with coverage | pytest, coverage |
347348
| `gh-deploy.yml` | Deploy documentation to GitHub Pages | MkDocs |

0 commit comments

Comments
 (0)