You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zi...@apache.org on 2022/07/08 10:29:14 UTC
[dolphinscheduler] branch dev updated: [Improvement] [CI] Add label robot to pull request (#10848)
This is an automated email from the ASF dual-hosted git repository.
zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new c829738e6c [Improvement] [CI] Add label robot to pull request (#10848)
c829738e6c is described below
commit c829738e6c9a0b9b67edefc8d8b6f8de60c6b556
Author: xiangzihao <46...@qq.com>
AuthorDate: Fri Jul 8 18:29:08 2022 +0800
[Improvement] [CI] Add label robot to pull request (#10848)
* add label robot to pull request
---
.github/actions/labeler/labeler.yml | 46 ++++++++++++++++++++++
.../workflows/{issue_robot.yml => issue-robot.yml} | 0
.../{issue_robot.yml => pull-request-robot.yml} | 28 ++++++-------
3 files changed, 57 insertions(+), 17 deletions(-)
diff --git a/.github/actions/labeler/labeler.yml b/.github/actions/labeler/labeler.yml
new file mode 100644
index 0000000000..6cedfc7455
--- /dev/null
+++ b/.github/actions/labeler/labeler.yml
@@ -0,0 +1,46 @@
+#
+# 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.
+#
+
+Python:
+ - any: ['dolphinscheduler-python/**/*']
+
+backend:
+ - any: ['dolphinscheduler-alert/**/*', 'dolphinscheduler-api/**/*', 'dolphinscheduler-common/**/*']
+ - any: ['dolphinscheduler-dao/**/*', 'dolphinscheduler-data-quality/**/*', 'dolphinscheduler-datasource-plugin/**/*']
+ - any: ['dolphinscheduler-dist/**/*', 'dolphinscheduler-log-server/**/*', 'dolphinscheduler-master/**/*']
+ - any: ['dolphinscheduler-registry/**/*', 'dolphinscheduler-remote/**/*', 'dolphinscheduler-scheduler-plugin/**/*']
+ - any: [ 'dolphinscheduler-server/**/*', 'dolphinscheduler-service/**/*', 'dolphinscheduler-spi/**/*' ]
+ - any: [ 'dolphinscheduler-standalone-server/**/*', 'dolphinscheduler-task-plugin/**/*', 'dolphinscheduler-tools/**/*' ]
+ - any: [ 'dolphinscheduler-worker/**/*', 'script/**/*' ]
+
+document:
+ - any: ['docs/**/*']
+
+CI&CD:
+ - any: [.github/**/*]
+
+docker:
+ - any: [.deploy/**/*]
+
+UI:
+ - any: ['dolphinscheduler-ui/**/*']
+
+e2e:
+ - any: ['dolphinscheduler-e2e/**/*']
+
+test:
+ - any: ['dolphinscheduler-api-test/**/*']
diff --git a/.github/workflows/issue_robot.yml b/.github/workflows/issue-robot.yml
similarity index 100%
copy from .github/workflows/issue_robot.yml
copy to .github/workflows/issue-robot.yml
diff --git a/.github/workflows/issue_robot.yml b/.github/workflows/pull-request-robot.yml
similarity index 54%
rename from .github/workflows/issue_robot.yml
rename to .github/workflows/pull-request-robot.yml
index b1daca781e..932c9be465 100644
--- a/.github/workflows/issue_robot.yml
+++ b/.github/workflows/pull-request-robot.yml
@@ -15,14 +15,16 @@
# limitations under the License.
#
-name: issue-robot
+name: "pull-request-robot"
on:
- issues:
- types: [opened]
+ pull_request_target:
jobs:
- issueRobot:
+ labelRobot:
+ permissions:
+ contents: read
+ pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Checkout ${{ github.ref }}"
@@ -31,17 +33,9 @@ jobs:
persist-credentials: false
submodules: true
- - name: "Translation into English in issue"
- uses: ./.github/actions/translate-on-issue
+ - name: "Label in pull request"
+ uses: actions/labeler@v4
with:
- translate-title: true
- translate-body: true
-
- - name: "Comment in issue"
- uses: ./.github/actions/comment-on-issue
- with:
- message: |
- Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- * In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- * If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
+ configuration-path: ./.github/actions/labeler/labeler.yml
+ sync-labels: true