| # Whether or not rebase-merging is enabled on this repository. | |
| # Defaults to `true` | |
| rebaseMergeAllowed: false | |
| # Whether or not squash-merging is enabled on this repository. | |
| # Defaults to `true` | |
| squashMergeAllowed: true | |
| # Whether or not PRs are merged with a merge commit on this repository. | |
| # Defaults to `false` | |
| mergeCommitAllowed: false | |
| # Rules for main branch protection | |
| branchProtectionRules: | |
| # Identifies the protection rule pattern. Name of the branch to be protected. | |
| # Defaults to `main` | |
| - pattern: main | |
| # Can admins overwrite branch protection. | |
| # Defaults to `true` | |
| isAdminEnforced: true | |
| # Number of approving reviews required to update matching branches. | |
| # Defaults to `1` | |
| requiredApprovingReviewCount: 1 | |
| # Are reviews from code owners required to update matching branches. | |
| # Defaults to `false` | |
| requiresCodeOwnerReviews: true | |
| # Require up to date branches | |
| requiresStrictStatusChecks: false | |
| # List of required status check contexts that must pass for commits to be accepted to matching branches. | |
| requiredStatusCheckContexts: | |
| - units (8) | |
| - units (11) | |
| - units (17) | |
| - cla/google | |
| - enforcer | |
| - lint | |
| - OwlBot Post Processor | |
| - 'Kokoro - Test: Integration' | |
| - pattern: 1.0.x | |
| # Can admins overwrite branch protection. | |
| # Defaults to `true` | |
| isAdminEnforced: true | |
| # Number of approving reviews required to update matching branches. | |
| # Defaults to `1` | |
| requiredApprovingReviewCount: 1 | |
| # Are reviews from code owners required to update matching branches. | |
| # Defaults to `false` | |
| requiresCodeOwnerReviews: true | |
| # Require up to date branches | |
| requiresStrictStatusChecks: false | |
| # List of required status check contexts that must pass for commits to be accepted to matching branches. | |
| requiredStatusCheckContexts: | |
| - units (8) | |
| - units (11) | |
| - units (17) | |
| - cla/google | |
| - enforcer | |
| - lint | |
| - OwlBot Post Processor | |
| - 'Kokoro - Test: Integration' | |
| # List of explicit permissions to add (additive only) | |
| permissionRules: | |
| - team: yoshi-admins | |
| permission: admin | |
| - team: yoshi-java-admins | |
| permission: admin | |
| - team: yoshi-java | |
| permission: push |