From 4ac931a52dca12f1383bc7f7bc1d72f6cabf7241 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Wed, 22 Jul 2026 11:45:36 +0530 Subject: [PATCH] ci: add pr labeler --- .github/labeler.yml | 14 ++++++++++++++ .github/workflows/pr_labeler.yaml | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/pr_labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..9d94358 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +# Add 'documentation' label to any change to *.md files +documentation: + - changed-files: + - any-glob-to-any-file: [ '**/*.md' ] + +# Add 'github_actions' label to any change .github/ directory +github_actions: + - changed-files: + - any-glob-to-any-file: [ '.github/**' ] + + +osc: + - changed-files: + - any-glob-to-any-file: [ '**' ] \ No newline at end of file diff --git a/.github/workflows/pr_labeler.yaml b/.github/workflows/pr_labeler.yaml new file mode 100644 index 0000000..53443d6 --- /dev/null +++ b/.github/workflows/pr_labeler.yaml @@ -0,0 +1,19 @@ +name: PRs labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + pull-requests: write + +jobs: + triage: + if: ${{ !github.event.pull_request.draft }} + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + - uses: actions/labeler@v6 + with: + sync-labels: true