From 2eb1d12b3d873c8d13121d5073f8cf986bd234e2 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 17 Sep 2023 21:59:19 +0300 Subject: [PATCH] [CI] Add github PR labeler (#97) * Add labeler * Run on prs * Add move labeling --- .github/labeler.yml | 14 ++++++++++++++ .github/workflows/labeler.yml | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..3906adb --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +ci: + - .github/workflows/** + - .actrc + - .pre-commit-config.yaml + +protocol: + - src/protocols/** + +games: + - src/games/** + +crate: + - Cargo.toml + - Cargo.lock diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..6c454f2 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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