diff --git a/.github/labeler-pr.yml b/.github/labeler-pr.yml new file mode 100644 index 00000000..2e4a7eda --- /dev/null +++ b/.github/labeler-pr.yml @@ -0,0 +1,36 @@ +documentation: + - any: + - changed-files: + - any-glob-to-any-file: + - "docs/**" + +gui: + - any: + - changed-files: + - any-glob-to-any-file: + - "Source/gui/**" + +santactl: + - any: + - changed-files: + - any-glob-to-any-file: + - "Source/santactl/**" + +daemon: + - any: + - changed-files: + - any-glob-to-any-file: + - "Source/santad/**" + +configurator: + - any: + - changed-files: + - any-glob-to-any-file: + - "Source/common/SNTConfigurator.*" + +build: + - any: + - changed-files: + - any-glob-to-any-file: + - "**/BUILD" + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..5c1a47e6 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,28 @@ +name: Process PRs + +on: + - pull_request_target + +jobs: + labels: + name: Labelers + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write + + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4.2.2 + with: + sparse-checkout: .github + + - name: Apply Labels + uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # ratchet:actions/labeler@v5 + with: + configuration-path: .github/labeler-pr.yml + + - name: Apply Size Labels + uses: codelytv/pr-size-labeler@1c3422395d899286d5ee2c809fd5aed264d5eb9b # ratchet:codelytv/pr-size-labeler@v1.10.2 +