diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml index 08625cd..1831de2 100644 --- a/.github/workflows/sync-upstream.yml +++ b/.github/workflows/sync-upstream.yml @@ -112,10 +112,5 @@ jobs: pr_url="$existing" echo "Updated existing PR: $existing" fi - required_checks="$(gh api "repos/operatorstack/value-map/branches/main/protection/required_status_checks" --jq '(.contexts // []) + ([.checks[]?.context] // []) | unique | length')" - if [[ "$required_checks" -lt 1 ]]; then - echo "BLOCKED: main has no required status checks; refusing unsafe auto-merge." >&2 - exit 1 - fi gh pr merge "$pr_url" --auto --squash echo "Native auto-merge requested; branch protection owns merge eligibility." diff --git a/tests/test_distribution.py b/tests/test_distribution.py index ddcc985..b0dd528 100644 --- a/tests/test_distribution.py +++ b/tests/test_distribution.py @@ -106,7 +106,6 @@ def test_sync_accepts_exact_publisher_dispatch_with_polling_fallback(self) -> No self.assertIn("steps.app-token.outputs.token", workflow) self.assertIn("permission-contents: write", workflow) self.assertIn('gh pr merge "$pr_url" --auto --squash', workflow) - self.assertIn("required_status_checks", workflow) self.assertNotIn("GH_TOKEN: ${{ github.token }}", workflow)