ci: add labeler

This commit is contained in:
valerie 2024-05-04 18:37:10 -04:00
parent 364e268b11
commit 20d9256aa9
No known key found for this signature in database
GPG key ID: BC4072495F2567DE
2 changed files with 27 additions and 0 deletions

14
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,14 @@
modifies labeler:
- .github/labeler.yml
modifies ci:
- .github/workflows/*.yml
modifies docker:
- '**/Dockerfile'
- '**/docker-compose.yml'
- '**/*.env'
modifies api:
- api/**/*
modifies gui:
- gui/**/*
modifies nix:
- '**/*.nix'

13
.github/workflows/label.yml vendored Normal file
View file

@ -0,0 +1,13 @@
name: Labeler
on: [pull_request_target]
jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"