MCPcopy Index your code
hub / github.com/cli/cli / checkForPendingOperation

Method checkForPendingOperation

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

Source from the content-addressed store, hash-verified

1127}
1128
1129func (a *API) checkForPendingOperation(ctx context.Context, codespaceName string) (bool, string, error) {
1130 codespace, err := a.GetCodespace(ctx, codespaceName, false)
1131 if err != nil {
1132 return false, "", err
1133 }
1134 return codespace.PendingOperation, codespace.PendingOperationDisabledReason, nil
1135}
1136
1137type getCodespaceRepositoryContentsResponse struct {
1138 Content string `json:"content"`

Callers 1

EditCodespaceMethod · 0.95

Calls 1

GetCodespaceMethod · 0.95

Tested by

no test coverage detected