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

supabase / cli / 16744170470

05 Aug 2025 07:59AM UTC coverage: 54.901%. First build
16744170470

Pull #3979

github

web-flow
Merge c7ffbbe0d into 8652151c8
Pull Request #3979: feat: support branch pause and unpause

0 of 87 new or added lines in 6 files covered. (0.0%)

6184 of 11264 relevant lines covered (54.9%)

6.15 hits per line

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

0.0
/internal/branches/unpause/unpause.go
1
package unpause
2

3
import (
4
        "context"
5
        "net/http"
6

7
        "github.com/go-errors/errors"
8
        "github.com/supabase/cli/internal/branches/pause"
9
        "github.com/supabase/cli/internal/utils"
10
)
11

NEW
12
func Run(ctx context.Context, branchId string) error {
×
NEW
13
        projectRef, err := pause.GetBranchProjectRef(ctx, branchId)
×
NEW
14
        if err != nil {
×
NEW
15
                return err
×
NEW
16
        }
×
NEW
17
        if resp, err := utils.GetSupabase().V1RestoreAProjectWithResponse(ctx, projectRef); err != nil {
×
NEW
18
                return errors.Errorf("failed to unpause branch: %w", err)
×
NEW
19
        } else if resp.StatusCode() != http.StatusOK {
×
NEW
20
                return errors.Errorf("unexpected unpause branch status %d: %s", resp.StatusCode(), string(resp.Body))
×
NEW
21
        }
×
NEW
22
        return nil
×
23
}
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