(ctx context.Context, codespaceName string)
| 1127 | } |
| 1128 | |
| 1129 | func (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 | |
| 1137 | type getCodespaceRepositoryContentsResponse struct { |
| 1138 | Content string `json:"content"` |
no test coverage detected