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

supabase / cli / 38700086342
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 15 Oct 2026 07:39AM UTC
Jobs 1
Files 79
Run time 1min
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

15 Oct 2026 07:37AM UTC coverage: 66.737%. Remained the same
38700086342

push

github

web-flow
chore(cli): map branches and backups command permissions (#7152)

Maps `branches create|delete|disable|get|list|pause|unpause|update` and
`backups list|restore` to the Management API operations they can call,
so scoped PATs can be granted per command. Drift tests keep each
declaration in step with what the command does.

**Shared changes.**
- New `branchPrompt` block (`v1-list-all-branches`, required) for the
branch listing shown when no branch is given on a TTY.
- The context text of `projectRefPicker`, `linkedProjectCache` and
`branchRef` is reworded so it fits every command that includes it. No
condition or label changed.

**Blocks used.** `projectRefPicker` and `linkedProjectCache` (all ten),
`branchPrompt` and `branchRef` (delete, pause, unpause, update; `get`
uses `branchPrompt` and declares its name lookup itself),
`upgradeSuggestion` (create, update).

**Conditions.** `branches get` names the global output flags: the
branch's API keys and pooler config are read for `-o` other than
`pretty`, and with no `-o` when the output format is json or stream-json
(`--output-format`, `--agent yes`, or a detected coding agent). This is
the first declaration to name global flags in `when`.

**Findings.**
- `pause` and `unpause` call the project-level pause and restore
operations, so they need `project_admin_write`, not a branching
permission.
- `disable` needs only `branching_production_delete`.
- A 4xx on `create` or `update` triggers the upgrade-suggestion lookups
(best-effort).

**Tests.** Each command's integration test runs the project picker, the
branch picker where it applies, and the real linked-project cache, and
checks the exact request sequence. `branches get` covers each output
mode that changes its calls; the agent-detected case is simulated
through the output format.

**Not covered.** Context entries (`branchPrompt`, `branchRef`, the
cache, the agent-detected entry) are asserted by request sequence only.
`--persistent=false` is not run on ever... (continued)

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38700086342.1 15 Oct 2026 07:39AM UTC 79
66.74
GitHub Action Run
Source Files on build 38700086342
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38700086342
  • 8d4a2eec on github
  • Prev Build on gh-readonly-queue/develop/pr-7149-5806448112af182a11d3dc73a573e5a9901fd2a3 (#38678032695)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc