• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 27131207244

08 Jun 2026 10:21AM UTC coverage: 63.982% (-0.02%) from 64.006%
27131207244

push

github

web-flow
feat(cli): add --git-branch flag to branches create command (#5250)

Adds support for explicitly specifying a git branch to associate with a
new preview branch via the `--git-branch` flag in the `supabase branches
create` command.

## Changes

- **TypeScript CLI (next)**: Added `gitBranch` flag to the `create`
command config with optional string value. The flag prefers explicitly
provided values over auto-detected git branches from environment
variables.
- **TypeScript CLI (legacy)**: Added `gitBranch` flag to the legacy
branches create command for backward compatibility.
- **Go CLI**: Added `--git-branch` flag support to the branches create
command, respecting explicit values over auto-detected branches.
- **API integration**: Updated the branch creation API request to
include the `git_branch` field when provided.
- **Documentation**: Updated `SIDE_EFFECTS.md` to reflect the new
`git_branch` parameter in the API request body and added the flag to the
documented command flags.
- **Tests**: Added integration test coverage for the new flag and
verified that explicit `--git-branch` values take precedence over
auto-detected branches.

## Implementation Details

The implementation follows a preference hierarchy: explicitly provided
`--git-branch` flag values take precedence over auto-detected git
branches (from `GITHUB_HEAD_REF` or local git state). This allows users
to override auto-detection when needed while maintaining backward
compatibility for existing workflows that rely on auto-detection.

https://claude.ai/code/session_01Vsgo83p6eooc7QUXuZXJVx

Closes: CLI-1465

---------

Co-authored-by: Claude <noreply@anthropic.com>

10145 of 15856 relevant lines covered (63.98%)

7.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.09
/internal/debug/postgres.go


Source Not Available

The file "internal/debug/postgres.go" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc