From c13b6c386ef5c90073716cd1d4e02927ff8cfea9 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Thu, 14 Apr 2022 12:43:13 -0700 Subject: [PATCH 1/2] build: add sync-repo-settings and change branch protection --- .../.github/sync-repo-settings.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml diff --git a/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml b/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml new file mode 100644 index 000000000..2f0275d78 --- /dev/null +++ b/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml @@ -0,0 +1,17 @@ +branchProtectionRules: + - pattern: main + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - "ci/kokoro: Samples test" + - "ci/kokoro: System test" + - docs + - lint + - test ({{metadata['engine'] | int}}) + - test ({{metadata['engine'] | int+2}}) + - test ({{metadata['engine'] | int+4}}) + - cla/google + - windows + - OwlBot Post Processor \ No newline at end of file From d752bca2952b2ced765560fca7c895a34d549662 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Thu, 14 Apr 2022 12:44:58 -0700 Subject: [PATCH 2/2] remove whitespace --- .../gcp/templates/node_library/.github/sync-repo-settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml b/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml index 2f0275d78..bfd74430b 100644 --- a/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml +++ b/synthtool/gcp/templates/node_library/.github/sync-repo-settings.yaml @@ -14,4 +14,4 @@ branchProtectionRules: - test ({{metadata['engine'] | int+4}}) - cla/google - windows - - OwlBot Post Processor \ No newline at end of file + - OwlBot Post Processor