File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
- // Source hash: d23dcc6fda8ea3f1aee204e40a65895746b1c48ae39e676f43dbf3c12c27dac9
1
+ // Source hash: 502e316a739f1716d693e20b5f00db3e1fec499dd7ae21b8777097eb429691e8
2
2
import { createRequire } from "node:module";
3
3
var __create = Object.create;
4
4
var __getProtoOf = Object.getPrototypeOf;
@@ -30466,7 +30466,13 @@ class UserFacingError extends Error {
30466
30466
var ActionInputSchema = z.object({
30467
30467
githubUsername: z.string().min(1).optional(),
30468
30468
coderUsername: z.string().min(1).optional(),
30469
- coderUrl: z.string().min(1),
30469
+ coderUrl: z.string().min(1).transform((val) => {
30470
+ const trimmed = val.trim();
30471
+ if (trimmed.endsWith("/")) {
30472
+ return trimmed.slice(0, -1);
30473
+ }
30474
+ return trimmed;
30475
+ }),
30470
30476
coderToken: z.string().min(1),
30471
30477
workspaceName: z.string().min(1),
30472
30478
githubStatusCommentId: z.string().min(1).transform((val) => parseInt(val)),
Original file line number Diff line number Diff line change @@ -19,7 +19,16 @@ export class UserFacingError extends Error {}
19
19
export const ActionInputSchema = z . object ( {
20
20
githubUsername : z . string ( ) . min ( 1 ) . optional ( ) ,
21
21
coderUsername : z . string ( ) . min ( 1 ) . optional ( ) ,
22
- coderUrl : z . string ( ) . min ( 1 ) ,
22
+ coderUrl : z
23
+ . string ( )
24
+ . min ( 1 )
25
+ . transform ( ( val ) => {
26
+ const trimmed = val . trim ( ) ;
27
+ if ( trimmed . endsWith ( "/" ) ) {
28
+ return trimmed . slice ( 0 , - 1 ) ;
29
+ }
30
+ return trimmed ;
31
+ } ) ,
23
32
coderToken : z . string ( ) . min ( 1 ) ,
24
33
workspaceName : z . string ( ) . min ( 1 ) ,
25
34
githubStatusCommentId : z
You can’t perform that action at this time.
0 commit comments