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

bossenti pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2b256ee30 [#1104] add GitHub workflow to label PRs automatically 
(#1142)
2b256ee30 is described below

commit 2b256ee30e2cd9057227222549aafa56e6570b97
Author: Harry262530 <[email protected]>
AuthorDate: Thu Feb 2 01:32:12 2023 +0530

    [#1104] add GitHub workflow to label PRs automatically (#1142)
    
    * Create prlabelling.yaml
    
    * pull request labeler rules
    
    * config file for merging label rules
    
    * updated pull request target
    
    * filter pr created by dependabot
    
    * removed repo label from every  pr
    
    * [#1104] remove unnecessary config file
    
    * [#1104] provide initial version of StreamPipes label config
    
    * [#1104] restrict pr events & provide config path
    
    * [#1104] refactor file names
    
    * [#1104] add Apache license header
    
    * [#1104] refine labeler config
    
    * [#1104] add sync configuration
    
    ---------
    
    Co-authored-by: bossenti <[email protected]>
---
 .github/pr-labeler-config.yml     | 62 +++++++++++++++++++++++++++++++++++++++
 .github/workflows/pr-labeler.yaml | 37 +++++++++++++++++++++++
 2 files changed, 99 insertions(+)

diff --git a/.github/pr-labeler-config.yml b/.github/pr-labeler-config.yml
new file mode 100644
index 000000000..75cd78ce5
--- /dev/null
+++ b/.github/pr-labeler-config.yml
@@ -0,0 +1,62 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+backend:
+  - "streampipes-*/**/*.java"
+
+connect:
+  - "streampipes-extensions/streampipes-connect-adapters/**/*"
+  - "streampipes-extensions/streampipes-connect-adapters-iiot/**/*"
+
+
+dependencies:
+  - "**/pom.xml"
+  - "**/setup.py"
+  - "ui/**/package.json"
+  - "ui/**/package-lock.json"
+
+documentation:
+  - "**/*.md"
+
+gh-actions:
+  - ".github/**/*"
+
+installer:
+  - "installer/**/*"
+
+java:
+  - "**/*.java"
+
+javascript:
+  - "**/*.js"
+
+'pipeline elements':
+  - "streampipes-exensions/streampipes-extensions-*/**/*"
+  - "streampipes-extensions/streampipes-pipeline-*/**/*"
+  - "streampipes-extensions/streampipes-processors-*/**/*"
+  - "streampipes-extensions/streampipes-sinks-*/**/*"
+  - "streampipes-extensions/streampipes-sources-*/**/*"
+
+python:
+  - "**/*.py"
+
+testing:
+  - "streampipes-integration-tests/**/*"
+  - "streampipes-client-python/tests/**/*"
+  - "streampipes-*/**/test/**/*"
+  - "ui/cypress/**/*"
+
+ui:
+  - "ui/**/*"
diff --git a/.github/workflows/pr-labeler.yaml 
b/.github/workflows/pr-labeler.yaml
new file mode 100644
index 000000000..a45c59d29
--- /dev/null
+++ b/.github/workflows/pr-labeler.yaml
@@ -0,0 +1,37 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: "Pull Request Labeler"
+run-name: ${{ github.actor }} created pull request labeler
+
+on:
+  pull_request:
+    types: [opened, closed, reopened]
+
+jobs:
+  triage:
+    if: >-
+      github.event.pull_request.user.login != 'octobot' &&
+      github.event.pull_request.user.login != 'dependabot[bot]'
+    permissions:
+      contents: read
+      pull-requests: write
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/labeler@v4
+      with:
+        configuration-path: .github/pr-labeler-config.yaml
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"
+        sync-labels: true

Reply via email to