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

zhoujieguang pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/dolphinscheduler-sdk-python.git


The following commit(s) were added to refs/heads/main by this push:
     new ed62a37  [ci] Add mergeable and enable github issue (#10)
ed62a37 is described below

commit ed62a3706a0bd45e00886ee36a237cdabe1e88b3
Author: Jay Chung <[email protected]>
AuthorDate: Thu Nov 10 11:38:13 2022 +0800

    [ci] Add mergeable and enable github issue (#10)
    
    * [ci] Add mergeable and enable github issue
    
    * Add ci badge
---
 .asf.yaml             |  2 ++
 .github/mergeable.yml | 26 ++++++++++++++++++++++++++
 README.md             |  2 +-
 3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/.asf.yaml b/.asf.yaml
index 1bf4b34..5e4ede7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -23,6 +23,8 @@ github:
     - workflow
     - python
     - api
+  features:
+    issues: true
   enabled_merge_buttons:
     squash: true
     merge: false
diff --git a/.github/mergeable.yml b/.github/mergeable.yml
new file mode 100644
index 0000000..73aeba5
--- /dev/null
+++ b/.github/mergeable.yml
@@ -0,0 +1,26 @@
+# 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.
+---
+version: 2
+mergeable:
+  - when: pull_request.*
+    name: label-check
+    validate:
+      - do: label
+        must_include:
+          regex: 'enhancement|bug|improvement|documentation|chore'
+          message: 'Label must include one of the following: `enhancement`, 
`bug`, `improvement`, `documentation`, `chore`'
diff --git a/README.md b/README.md
index a311a86..2c4dec4 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ under the License.
 
 [![Code style: 
black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
 [![Imports: 
isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat-square&labelColor=ef8336)](https://pycqa.github.io/isort)
-[![GitHub 
Build](https://github.com/apache/dolphinscheduler/actions/workflows/py-ci.yml/badge.svg?branch=dev)](https://github.com/apache/dolphinscheduler/actions?query=workflow%3A%22Python+API%22)
+[![CI](https://github.com/apache/dolphinscheduler-sdk-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/dolphinscheduler-sdk-python/actions/workflows/ci.yaml)
 
 **PyDolphinScheduler** is python API for Apache DolphinScheduler, which allow 
you definition
 your workflow by python code, aka workflow-as-codes.

Reply via email to