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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b51121f  [chore](github-action) Add label auto for pull requests 
(#7663)
b51121f is described below

commit b51121fe865960cc8ef3d92adfbc9c5048efcc29
Author: jakevin <30525741+jackwe...@users.noreply.github.com>
AuthorDate: Thu Jan 13 20:07:16 2022 +0800

    [chore](github-action) Add label auto for pull requests (#7663)
---
 .github/workflows/auto-label-title.yml | 83 ++++++++++++++++++++++++++++++++++
 .gitmodules                            |  3 ++
 2 files changed, 86 insertions(+)

diff --git a/.github/workflows/auto-label-title.yml 
b/.github/workflows/auto-label-title.yml
new file mode 100644
index 0000000..6ccd58c
--- /dev/null
+++ b/.github/workflows/auto-label-title.yml
@@ -0,0 +1,83 @@
+# 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: Add label automatically based on PR title
+
+on:
+  pull_request:
+    types: [opened, edited]
+
+jobs:
+  auto-filling-pull-request:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Add labels based on PR title
+        uses: ./.github/actions/set-label-based-on-pr-title
+        with:
+          words: >-
+            [fix];
+            [feature];
+            [improvement];
+            [docs];
+            [typo];
+            [refactor];
+            [performance];
+            [test];
+            [chore];
+            [revert];
+            [community];
+            
+            (vectorized);
+            (planner);
+            (storage);
+            (load);
+            (stream-load);
+            (broker-load);
+            (routine-load);
+            (export);
+            (spark-connector);
+            (flink-connector);
+            (datax);
+            (config)
+            
+          labels: >-
+            kind/fix;
+            kind/feature;
+            kind/improvement;
+            kind/docs;
+            kind/typo;
+            kind/refactor;
+            kind/performance;
+            kind/test
+            kind/chore;
+            kind/revert;
+            kind/community;
+            
+            area/vectorized;
+            area/planner;
+            area/storage;
+            area/load;
+            area/stream-load;
+            area/broker-load;
+            area/routine-load;
+            area/export;
+            area/spark-connector;
+            area/flink-connector;
+            area/datax;
+            area/config
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"
diff --git a/.gitmodules b/.gitmodules
index 9fe03a6..763af33 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,6 @@
 [submodule ".github/actions/clang-format-lint-action"]
        path = .github/actions/clang-format-lint-action
        url = https://github.com/DoozyX/clang-format-lint-action.git
+[submodule ".github/actions/clang-format-lint-action"]
+       path = .github/actions/set-label-based-on-pr-title
+       url = https://github.com/jackwener/set-label-based-on-pr-title.git

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to