1# Copyright 2022 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14# Whether or not rebase-merging is enabled on this repository. 15# Defaults to `true` 16rebaseMergeAllowed: false 17 18# Whether or not squash-merging is enabled on this repository. 19# Defaults to `true` 20squashMergeAllowed: true 21 22# Whether or not PRs are merged with a merge commit on this repository. 23# Defaults to `false` 24mergeCommitAllowed: false 25 26# Rules for main branch protection 27branchProtectionRules: 28# Identifies the protection rule pattern. Name of the branch to be protected. 29# Defaults to `main` 30- pattern: main 31 # Can admins overwrite branch protection. 32 # Defaults to `true` 33 isAdminEnforced: true 34 # Number of approving reviews required to update matching branches. 35 # Defaults to `1` 36 requiredApprovingReviewCount: 1 37 # Are reviews from code owners required to update matching branches. 38 # Defaults to `false` 39 requiresCodeOwnerReviews: true 40 # Require up to date branches 41 requiresStrictStatusChecks: false 42 # List of required status check contexts that must pass for commits to be accepted to matching branches. 43 requiredStatusCheckContexts: 44 - "dependencies (11)" 45 - "lint" 46 - "units (8)" 47 - "units (11)" 48 - "Kokoro - Test: Integration" 49 - "cla/google" 50 - "OwlBot Post Processor" 51 - "Kokoro - Test: Java GraalVM Native Image" 52 - "Kokoro - Test: Java 17 GraalVM Native Image" 53# List of explicit permissions to add (additive only) 54permissionRules: 55- team: yoshi-admins 56 permission: admin 57- team: yoshi-java-admins 58 permission: admin 59- team: yoshi-java 60 permission: push 61- team: java-samples-reviewers 62 permission: push 63 64