Branching - Add --with-data option to GitHub integration
#47427
Replies: 3 comments
-
|
Thanks for the suggestion - this makes sense. The GitHub integration currently creates preview branches without exposing the CLI’s One consideration is that data cloning can have cost/performance/security implications depending on project size and contents, so the setting would likely need to be explicit and probably disabled by default. For now, the workaround is to create the branch via the CLI using: supabase branches create <branch-name> --with-dataLeaving this open as a feature request for the GitHub integration. |
Beta Was this translation helpful? Give feedback.
-
|
Agree this would be handy. It's CLI-only right now — you can already include data with A toggle under Settings → Integrations → GitHub is a valid ask — worth upvoting so it gets tracked on the roadmap. |
Beta Was this translation helpful? Give feedback.
-
|
Good feature request. The --with-data flag is available in the CLI today (supabase db branch create --with-data) but the GitHub integration does not expose it yet. You can work around this by running the CLI step as part of your CI workflow immediately after the branch is created by the integration. Add a step in your GitHub Actions workflow that runs after the Supabase branch is created:
The 2>/dev/null || true handles the case where the branch was already created by the integration. This gives you data seeding on every PR branch until the toggle lands in the UI. Upvoted the feature request. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Supabase offers a great branching feature.
While the CLI offers the option create a branch
--with-data, this option is not available in the native GitHub integration.It's be great to have this option in the UI Settings > Integrations > GitHub Integration: a little toggle to include data when creating new branches.
Beta Was this translation helpful? Give feedback.
All reactions