From a15f544a4b8ff3418471674143d5972e1ea64f09 Mon Sep 17 00:00:00 2001 From: brian khuu Date: Sat, 1 Jun 2024 01:58:49 +1000 Subject: [PATCH] github: add labeler action --- .github/labeler.yml | 53 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 17 +++++++++++ 2 files changed, 70 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..26d28df14 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,53 @@ +# https://github.com/actions/labeler + +documentation: + - changed-files: + - any-glob-to-any-file: + - README.md + - LICENSE + - CONTRIBUTING.md + - libc/README.md + - tool/cosmocc/README.md + - third_party/getopt/README.txt +testing: + - changed-files: + - any-glob-to-any-file: + - test/** +build: + - changed-files: + - any-glob-to-any-file: + - build/** + - Makefile + - '*/*.mk' +examples: + - changed-files: + - any-glob-to-any-file: examples/** +devops: + - changed-files: + - any-glob-to-any-file: + - .github/** + - .clang-format +dsp: + - changed-files: + - any-glob-to-any-file: + - dsp/** +ape: + - changed-files: + - any-glob-to-any-file: + - ape/** +libc: + - changed-files: + - any-glob-to-any-file: + - libc/** +net: + - changed-files: + - any-glob-to-any-file: + - net/** +third_party: + - changed-files: + - any-glob-to-any-file: + - third_party/** +tool: + - changed-files: + - any-glob-to-any-file: + - tool/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..a68484d5d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: "jart/cosmopolitan" + - uses: actions/labeler@v5 + with: + configuration-path: '.github/labeler.yml'