feat: Update and Delete deployments with cascade, also lint fix #83
Annotations
8 errors and 3 warnings
Typecheck
Property 'byType' does not exist on type 'DecoratedProcedureRecord<BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ deployment: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ variable: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ value: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: strin
|
Typecheck
@ctrlplane/agent-github-app#typecheck: command (/home/runner/work/ctrlplane/ctrlplane/agents/github-app) /home/runner/setup-pnpm/node_modules/.bin/pnpm run typecheck exited (2)
|
Typecheck
Parameter 'jobAgent' implicitly has an 'any' type.
|
Typecheck
Process completed with exit code 2.
|
Lint:
agents/github-app/src/index.ts#L147
Unsafe call of an `error` type typed value
|
Lint:
agents/github-app/src/index.ts#L152
Unsafe call of an `error` type typed value
|
Lint
@ctrlplane/agent-github-app#lint: command (/home/runner/work/ctrlplane/ctrlplane/agents/github-app) /home/runner/setup-pnpm/node_modules/.bin/pnpm run lint --cache --cache-location node_modules/.cache/.eslintcache exited (1)
|
Lint
Process completed with exit code 1.
|
Format
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Typecheck
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|