From a11f0861ffdc6b40aac17d9d8243f415306698d3 Mon Sep 17 00:00:00 2001 From: Michael Marshall Date: Thu, 27 Jan 2022 14:07:47 -0600 Subject: [PATCH] Update .asf.yaml to protect release branches --- .asf.yaml | 78 +++++++++++++++++++++++++++- .github/workflows/README.md | 6 +++ .github/workflows/ci-documentbot.yml | 19 +++++++ 3 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/README.md diff --git a/.asf.yaml b/.asf.yaml index 68b3f1e6d603e7..6477876ebe7622 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -40,4 +40,80 @@ github: # disable merge button: merge: false # disable rebase button: - rebase: false \ No newline at end of file + rebase: false + protected_branches: + master: + required_status_checks: + # strict means "Require branches to be up to date before merging". + strict: false + # Contexts are the names of checks that must pass. These names are + # found in the "name:" field of ./github/workflows/*.yaml files + # Note: here is the list of intentionally excluded contexts: + # - CI - OWASP Dependency Check + contexts: + - CI - Build - MacOS + - CI - Cancel duplicate workflows + - CI - CPP, Python Tests + - CI - CPP build on CentOS 7 + - CI - CPP build on Windows + - Auto Labeling + - CI - Go Functions style check + - CI - Go Functions Tests + - CI - Integration - Backwards Compatibility + - CI - Integration - Cli + - CI - Integration - Function & IO + - CI - Integration - Messaging + - CI - Integration - Process + - CI - Integration - Pulsar-IO Sinks and Sources + - CI - Integration - Pulsar-IO Oracle Source + - CI - Integration - Schema + - CI - Integration - Sql + - CI - Integration - Standalone + - CI - Integration - Thread + - CI - Integration - Tiered FileSystem + - CI - Integration - Tiered JCloud + - CI - Integration - Transaction + - CI - Misc + - CI - Maven Dependency Cache Update + - CI - Pulsar Website build + - Pulsar Bot + - CI - Python - Build 3.9 client + - CI - Shade - Test + - CI - Unit + - CI - Unit - Brokers - Broker Group + - CI - Unit - Brokers - Client Api + - CI - Unit - Brokers - Client Impl + - CI - Unit - Broker - JDK8 + - CI - Unit - Brokers - Other + - CI - Unit - Proxy + + required_pull_request_reviews: + dismiss_stale_reviews: true + require_code_owner_reviews: true + required_approving_review_count: 1 + + # squash or rebase must be allowed in the repo for this setting to be set to true. + required_linear_history: true + + required_signatures: false + + # The following branch protections only ensure that force pushes are not allowed + asf-site: {} + branch-1.15: {} + branch-1.16: {} + branch-1.17: {} + branch-1.18: {} + branch-1.19: {} + branch-1.20: {} + branch-1.21: {} + branch-1.22: {} + branch-2.0: {} + branch-2.1: {} + branch-2.2: {} + branch-2.3: {} + branch-2.4: {} + branch-2.5: {} + branch-2.6: {} + branch-2.7: {} + branch-2.8: {} + branch-2.9: {} diff --git a/.github/workflows/README.md b/.github/workflows/README.md new file mode 100644 index 00000000000000..54f520db6c0afb --- /dev/null +++ b/.github/workflows/README.md @@ -0,0 +1,6 @@ +## GitHub Workflows + +This directory contains all Pulsar CI checks. + +When adding new CI workflows, please update the [.asf.yaml](../../.asf.yaml) if the workflow is required to pass before +a PR can be merged. \ No newline at end of file diff --git a/.github/workflows/ci-documentbot.yml b/.github/workflows/ci-documentbot.yml index 99c8567eb9a035..b0970773cbc9f6 100644 --- a/.github/workflows/ci-documentbot.yml +++ b/.github/workflows/ci-documentbot.yml @@ -1,3 +1,22 @@ +# +# 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: Auto Labeling on: