From 6029281ea019377534e7c3b0c6c0d05200d8375b Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Thu, 17 Sep 2020 12:36:09 -0400 Subject: [PATCH] chore: add sync-repo-settings.yaml to grant correct access (#738) in order to grant correct access to CODEOWNERS of this repo --- .github/sync-repo-settings.yaml | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/sync-repo-settings.yaml diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml new file mode 100644 index 000000000..25ba59a0f --- /dev/null +++ b/.github/sync-repo-settings.yaml @@ -0,0 +1,52 @@ +# Whether or not rebase-merging is enabled on this repository. +# Defaults to `true` +rebaseMergeAllowed: true + +# 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 master branch protection +branchProtectionRules: +# Identifies the protection rule pattern. Name of the branch to be protected. +# Defaults to `master` +- pattern: master + # 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: + - "dependencies (8)" + - "dependencies (11)" + - "linkage-monitor" + - "lint" + - "clirr" + - "units (7)" + - "units (8)" + - "units (11)" + - "Kokoro - Test: Integration" + - "cla/google" +# List of explicit permissions to add (additive only) +permissionRules: +# Team slug to add to repository permissions +- team: api-bigquery + # Access level required, one of push|pull|admin|maintain|triage + permission: maintain +- team: yoshi-java + permission: push +- team: yoshi-admins + permission: admin +- team: yoshi-java-admins + permission: admin