Skip to content

Commit ba46170

Browse files
djhiawaseem
andauthored
fix: disable automatic branching for free projects (supabase#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>
1 parent 493fc16 commit ba46170

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export const GitHubIntegrationConnectionForm = ({
219219
workdir: data.supabaseDirectory,
220220
supabase_changes_only: data.supabaseChangesOnly,
221221
branch_limit: Number(data.branchLimit),
222-
new_branch_per_pr: data.new_branch_per_pr,
222+
new_branch_per_pr: data.new_branch_per_pr ?? false,
223223
},
224224
})
225225

@@ -268,7 +268,7 @@ export const GitHubIntegrationConnectionForm = ({
268268
workdir: data.supabaseDirectory,
269269
supabase_changes_only: data.supabaseChangesOnly,
270270
branch_limit: Number(data.branchLimit),
271-
new_branch_per_pr: data.new_branch_per_pr,
271+
new_branch_per_pr: data.new_branch_per_pr ?? false,
272272
},
273273
})
274274

0 commit comments

Comments
 (0)