You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xy...@apache.org on 2022/10/13 09:11:13 UTC

[pulsar-client-python] branch main updated: Enable required check status for pr validation (#13)

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

xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-python.git


The following commit(s) were added to refs/heads/main by this push:
     new ddb1229  Enable required check status for pr validation (#13)
ddb1229 is described below

commit ddb1229c92d85435278831ea4e00bc63867a7548
Author: Zike Yang <zi...@apache.org>
AuthorDate: Thu Oct 13 17:11:08 2022 +0800

    Enable required check status for pr validation (#13)
---
 .asf.yaml                               | 8 ++++----
 .github/workflows/ci-pr-validation.yaml | 9 +++++++++
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 53a2748..766ceb6 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -43,13 +43,13 @@ github:
     rebase:  false
   protected_branches:
     main:
-      # required_status_checks:
+      required_status_checks:
       #   # strict means "Require branches to be up to date before merging".
-      #   strict: false
+        strict: false
       #   # Contexts are the names of checks that must pass.
       #   # See ./github/workflows/README.md for more documentation on this list.
-      #   contexts:
-      #      - Pulsar CI checks completed
+        contexts:
+           - Check Completion
 
       required_pull_request_reviews:
         dismiss_stale_reviews: false
diff --git a/.github/workflows/ci-pr-validation.yaml b/.github/workflows/ci-pr-validation.yaml
index 515c9e7..e1b7434 100644
--- a/.github/workflows/ci-pr-validation.yaml
+++ b/.github/workflows/ci-pr-validation.yaml
@@ -154,3 +154,12 @@ jobs:
 
       - name: Build and test Mac wheels
         run: pkg/mac/build-mac-wheels.sh ${{matrix.py.version}}
+
+  # Job that will be required to complete and depends on all the other jobs
+  check-completion:
+    name: Check Completion
+    runs-on: ubuntu-latest
+    needs: [unit-tests, linux-wheel, mac-wheels]
+
+    steps:
+      - run: true