From 067412ec9fd78de636a849765da410d903950f0c Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 1 Dec 2025 20:21:48 -0600 Subject: [PATCH] add pr labeler --- .github/labeler.yml | 11 +++++++++++ .github/workflows/label-pr.yaml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label-pr.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..a16f965 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +framing: + - changed-files: + - any-glob-to-any-file: 'internal/framing/**' + +processing: + - changed-files: + - any-glob-to-any-file: 'internal/processing/**' + +cli: + - changed-files: + - any-glob-to-any-file: 'cmd/showbridge/**' diff --git a/.github/workflows/label-pr.yaml b/.github/workflows/label-pr.yaml new file mode 100644 index 0000000..bd10f1e --- /dev/null +++ b/.github/workflows/label-pr.yaml @@ -0,0 +1,18 @@ +# Taken from https://github.com/go-gitea/gitea +name: Add labels to PR +on: + pull_request_target: + types: [opened, synchronize, reopened] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 + with: + sync-labels: true \ No newline at end of file