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

supabase / cli / 27131207244 / 1
64%
develop: 64%

Build:
DEFAULT BRANCH: develop
Ran 08 Jun 2026 10:25AM UTC
Files 219
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

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

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 Files on job 27131207244.1
  • Tree
  • List 219
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27131207244
  • 142e6a11 on github
  • Prev Job for on develop (#27122304132.1)
  • Next Job for on develop (#27133540129.1)
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