From 500bdc56bfe6ddebe239aea45d9a3bf834b7b2c5 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 4 Aug 2022 16:46:45 +0200 Subject: [PATCH] Add labeler action (#3671) :construction_worker: add labeler action --- .github/labeler.yml | 38 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 14 +++++++++++++ 2 files changed, 52 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 000000000..024d3e6da --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,38 @@ +version: 1 + +labels: +- label: "documentation" + files: + - "README.md" + +- label: "documentation" + files: + - "docs/.*" + +- label: "tests" + files: + - "tests/.*" + +- label: "CMake" + files: + - ".*CMakeLists.txt" + +- label: "CMake" + files: + - "cmake/.*" + +- label: "CI" + files: + - "github/workflows/.*" + +- label: "CI" + files: + - "github/external_ci/.*" + +- label: "S" + size-below: 10 +- label: "M" + size-above: 9 + size-below: 100 +- label: "L" + size-above: 100 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..f3f4769d4 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" + +on: + - pull_request + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"