• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Whether or not rebase-merging is enabled on this repository.
2# Defaults to `true`
3rebaseMergeAllowed: false
4
5# Whether or not squash-merging is enabled on this repository.
6# Defaults to `true`
7squashMergeAllowed: true
8
9# Whether or not PRs are merged with a merge commit on this repository.
10# Defaults to `false`
11mergeCommitAllowed: false
12
13# Rules for main branch protection
14branchProtectionRules:
15  # Identifies the protection rule pattern. Name of the branch to be protected.
16  # Defaults to `main`
17  - pattern: main
18    # Can admins overwrite branch protection.
19    # Defaults to `true`
20    isAdminEnforced: true
21    # Number of approving reviews required to update matching branches.
22    # Defaults to `1`
23    requiredApprovingReviewCount: 1
24    # Are reviews from code owners required to update matching branches.
25    # Defaults to `false`
26    requiresCodeOwnerReviews: true
27    # Require up to date branches
28    requiresStrictStatusChecks: false
29    # List of required status check contexts that must pass for commits to be accepted to matching branches.
30    requiredStatusCheckContexts:
31      - units (8)
32      - units (11)
33      - units (17)
34      - cla/google
35      - enforcer
36      - lint
37      - OwlBot Post Processor
38      - 'Kokoro - Test: Integration'
39  - pattern: 1.0.x
40    # Can admins overwrite branch protection.
41    # Defaults to `true`
42    isAdminEnforced: true
43    # Number of approving reviews required to update matching branches.
44    # Defaults to `1`
45    requiredApprovingReviewCount: 1
46    # Are reviews from code owners required to update matching branches.
47    # Defaults to `false`
48    requiresCodeOwnerReviews: true
49    # Require up to date branches
50    requiresStrictStatusChecks: false
51    # List of required status check contexts that must pass for commits to be accepted to matching branches.
52    requiredStatusCheckContexts:
53      - units (8)
54      - units (11)
55      - units (17)
56      - cla/google
57      - enforcer
58      - lint
59      - OwlBot Post Processor
60      - 'Kokoro - Test: Integration'
61# List of explicit permissions to add (additive only)
62permissionRules:
63  - team: yoshi-admins
64    permission: admin
65  - team: yoshi-java-admins
66    permission: admin
67  - team: yoshi-java
68    permission: push