(ctx context.Context, codespaceName string)
| 1213 | } |
| 1214 | |
| 1215 | func (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 | |
| 1223 | type getCodespaceRepositoryContentsResponse struct { |
| 1224 | Content string `json:"content"` |
no test coverage detected