MCPcopy Index your code
hub / github.com/git-bug/git-bug / deleteRepository

Function deleteRepository

bridge/gitlab/export_test.go:316–324  ·  view source on GitHub ↗

delete repository need a token with scope 'delete_repo'

(ctx context.Context, project int, token *auth.Token)

Source from the content-addressed store, hash-verified

314
315// delete repository need a token with scope 'delete_repo'
316func deleteRepository(ctx context.Context, project int, token *auth.Token) error {
317 client, err := buildClient(defaultBaseURL, token)
318 if err != nil {
319 return err
320 }
321
322 _, err = client.Projects.DeleteProject(project, nil, gitlab.WithContext(ctx))
323 return err
324}

Callers 1

TestGitlabPushPullFunction · 0.70

Calls 1

buildClientFunction · 0.70

Tested by

no test coverage detected