MCPcopy Create free account
hub / github.com/cli/cli / checkForPendingOperation

Method checkForPendingOperation

internal/codespaces/api/api.go:1215–1221  ·  view source on GitHub ↗
(ctx context.Context, codespaceName string)

Source from the content-addressed store, hash-verified

1213}
1214
1215func (a *API) checkForPendingOperation(ctx context.Context, codespaceName string) (bool, string, error) {
1216 codespace, err := a.GetCodespace(ctx, codespaceName, false)
1217 if err != nil {
1218 return false, "", err
1219 }
1220 return codespace.PendingOperation, codespace.PendingOperationDisabledReason, nil
1221}
1222
1223type getCodespaceRepositoryContentsResponse struct {
1224 Content string `json:"content"`

Callers 1

EditCodespaceMethod · 0.95

Calls 1

GetCodespaceMethod · 0.95

Tested by

no test coverage detected