You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ja...@apache.org on 2024/01/10 08:17:36 UTC

(solr) branch main updated: Auto-label PRs with labeler action (#2180)

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 421d17b24b8 Auto-label PRs with labeler action (#2180)
421d17b24b8 is described below

commit 421d17b24b8bdd15bb2f466099d801b98a148f6e
Author: Jan Høydahl <ja...@apache.org>
AuthorDate: Wed Jan 10 09:17:31 2024 +0100

    Auto-label PRs with labeler action (#2180)
---
 .github/labeler.yml           | 172 ++++++++++++++++++++++++++++++++++++++++++
 .github/workflows/labeler.yml |  13 ++++
 2 files changed, 185 insertions(+)

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000000..ab2019fc498
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,172 @@
+# Add 'dependencies' label to any PR updating dependencies
+dependencies:
+  - changed-files:
+      - any-glob-to-any-file:
+        - versions.props
+        - versions.lock
+        - solr/licenses/**
+
+# Add 'documentation' label to any changes within ref-guide or dev-docs
+documentation:
+  - changed-files:
+      - any-glob-to-any-file:
+        - dev-docs/**
+        - solr/solr-ref-guide/**
+        - solr/documentation/**
+        - help/**
+        - solr/README.adoc
+        - CONTRIBUTING.md
+        - README.md
+
+# Add 'examples' label to examples
+examples:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/example/**
+
+# Add 'bats-tests' label
+bats-tests:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/packaging/tests/**
+
+# Add 'docker' label for changes to docker
+docker:
+  - changed-files:
+      - any-glob-to-any-file:
+        - solr/docker/**
+
+# Add 'tool:build' label for changes to gradle build files
+tool:build:
+  - changed-files:
+      - any-glob-to-any-file:
+          - '**/*.gradle'
+          - settings.gradle
+          - build.gradle
+          - gradle/**
+          - buildSrc/**
+
+# Add 'tools' label for changes to dev tools
+tool:scripts:
+  - changed-files:
+      - any-glob-to-any-file:
+          - dev-tools/**
+          - solr/server/scripts/cloud-scripts/**
+
+# Add jetty related labels
+jetty-server:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/server/etc/**
+          - solr/server/contexts/**
+          - solr/server/resources/**
+          - solr/server/modules/**
+
+# Add 'start-scripts' label for changes to start scripts
+start-scripts:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/bin/**
+
+# Add 'configs' label
+configs:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/server/solr/**
+
+# Add 'api' label
+api:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/api/**
+
+# Add 'client:solrj' labels
+client:solrj:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/solrj/**
+          - solr/solrj-*/**
+
+# Add 'test-framework' label
+test-framework:
+    - changed-files:
+        - any-glob-to-any-file:
+            - solr/test-framework/**
+
+# Add 'admin-ui' label
+admin-ui:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/webapp/**
+
+# Add 'prometheus-exporter' label
+prometheus-exporter:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/prometheus-exporter/**
+
+# Add labels for changes to solr modules
+module:analysis-extras:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/analytics-extras/**
+
+module:clustering:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/clustering/**
+
+module:extraction:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/extraction/**
+
+module:gcs-repository:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/gcs-repository/**
+
+module:hadoop-auth:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/hadoop-auth/**
+
+module:hdfs:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/hdfs/**
+
+module:jwt-auth:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/jwt-auth/**
+
+module:langid:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/langid/**
+
+module:ltr:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/ltr/**
+
+module:opentelemetry:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/opentelemetry/**
+
+module:s3-repository:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/s3-repository/**
+
+module:scripting:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/scripting/**
+
+module:sql:
+  - changed-files:
+      - any-glob-to-any-file:
+          - solr/modules/sql/**
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
new file mode 100644
index 00000000000..d59e2241ad0
--- /dev/null
+++ b/.github/workflows/labeler.yml
@@ -0,0 +1,13 @@
+name: "Pull Request Labeler"
+on:
+  - pull_request_target
+
+jobs:
+  labeler:
+    permissions:
+      contents: read
+      pull-requests: write
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/labeler@v5
+      
\ No newline at end of file