[CI] Add github PR labeler (#97)

* Add labeler

* Run on prs

* Add move labeling
This commit is contained in:
CosminPerRam 2023-09-17 21:59:19 +03:00 committed by GitHub
parent 8468c2b821
commit 2eb1d12b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

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

@ -0,0 +1,14 @@
ci:
- .github/workflows/**
- .actrc
- .pre-commit-config.yaml
protocol:
- src/protocols/**
games:
- src/games/**
crate:
- Cargo.toml
- Cargo.lock

17
.github/workflows/labeler.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: "Pull Request Labeler"
on:
pull_request:
branches: [ "main" ]
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
dot: true