fix: disable automatic branching for free projects (#46347)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Fixed an issue where the branch-per-PR setting in GitHub integration
connections could have an undefined value. The setting now defaults to a
valid state when creating or updating connections, ensuring consistent
and predictable behavior.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46347?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Ali Waseem <waseema393@gmail.com>
This commit is contained in:
Gildas Garcia
2026-05-25 18:44:57 +02:00
committed by GitHub
parent 493fc166c9
commit ba46170b66

View File

@@ -219,7 +219,7 @@ export const GitHubIntegrationConnectionForm = ({
workdir: data.supabaseDirectory,
supabase_changes_only: data.supabaseChangesOnly,
branch_limit: Number(data.branchLimit),
new_branch_per_pr: data.new_branch_per_pr,
new_branch_per_pr: data.new_branch_per_pr ?? false,
},
})
@@ -268,7 +268,7 @@ export const GitHubIntegrationConnectionForm = ({
workdir: data.supabaseDirectory,
supabase_changes_only: data.supabaseChangesOnly,
branch_limit: Number(data.branchLimit),
new_branch_per_pr: data.new_branch_per_pr,
new_branch_per_pr: data.new_branch_per_pr ?? false,
},
})