From 07ce7d2806aba6da04a460e693e42663259cc89b Mon Sep 17 00:00:00 2001 From: Louis Pieterse Date: Tue, 27 Aug 2024 16:09:50 +0100 Subject: [PATCH] Add TW Rules definition --- .github/tw-rules.yaml | 41 ++++++++++++++++++++++++++++++++ .github/workflows/connectors.yml | 8 +++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/tw-rules.yaml diff --git a/.github/tw-rules.yaml b/.github/tw-rules.yaml new file mode 100644 index 000000000..9d3f33798 --- /dev/null +++ b/.github/tw-rules.yaml @@ -0,0 +1,41 @@ +runChecks: true + +actions: + repo-settings: + deleteBranchOnMerge: true + branch-protection-settings: + branches: + - name: master + dismissStaleReviews: true + numRequiredReviews: 1 + requireLinearHistory: true + requireConversationResolution: true + requireBranchUpToDate: true + restrictMerge: + teams: + - name: analytics-platform + - name: machine-users + checks: + - name: lint_and_test + type: tests + - name: test_install_connectors + type: tests + - name: publish + type: tests + - name: e2e_tests_target_pg + type: tests + - name: e2e_tests_mariadb_to_sf + type: tests + - name: e2e_tests_pg_to_sf + type: tests + - name: e2e_tests_mg_to_sf + type: tests + - name: e2e_tests_s3_to_sf + type: tests + - name: e2e_tests_target_pg + type: tests + + sync-codeowners: + extraWriters: + - full-time-technical-staff + - machine-users diff --git a/.github/workflows/connectors.yml b/.github/workflows/connectors.yml index b13320202..c5ccecdf5 100644 --- a/.github/workflows/connectors.yml +++ b/.github/workflows/connectors.yml @@ -24,6 +24,14 @@ jobs: with: python-version: '3.8' + - name: Check if python changes are present + id: check + env: + GITHUB_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + continue-on-error: true + run: ./scripts/ci_check_no_file_changes.sh python + - name: Check all connectors are installable run: | make all_connectors -e pw_acceptlicenses=y