Skip to content

Commit

Permalink
Update .asf.yaml to protect release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljmarshall committed Feb 10, 2022
1 parent 496afa7 commit a11f086
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 1 deletion.
78 changes: 77 additions & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,80 @@ github:
# disable merge button:
merge: false
# disable rebase button:
rebase: false
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: {}
6 changes: 6 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -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.
19 changes: 19 additions & 0 deletions .github/workflows/ci-documentbot.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit a11f086

Please sign in to comment.