Skip to content

Commit 7c07b0e

Browse files
committed
feat: ignore case for repositories: ALL
1 parent 15a3ef8 commit 7c07b0e

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

action/dist/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65323,7 +65323,7 @@ runAction(async () => {
6532365323
repository: getInput('repository'),
6532465324
repositories: union([
6532565325
array(schemas_string()),
65326-
literal('ALL'),
65326+
schemas_string().toUpperCase().pipe(literal('ALL')),
6532765327
])
6532865328
.default(() => [])
6532965329
.parse(getYamlInput('repositories')),

action/src/action-main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runAction(async () => {
1919
repository: getInput('repository'),
2020
repositories: z.union([
2121
z.array(z.string()),
22-
z.literal('ALL'),
22+
z.string().toUpperCase().pipe(z.literal('ALL')),
2323
])
2424
.default(() => [])
2525
.parse(getYamlInput('repositories')),

server/src/app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ export function appInit(prepare?: (app: Hono) => void) {
6060
workflow_run_url: buildWorkflowRunUrl(callerIdentity),
6161
}, 'Caller Identity');
6262

63-
// console.log("###### X ", JSON.stringify(AccessTokenRequestBodySchema));
6463
const accessTokenRequest = await parseJsonBody(context.req, AccessTokenRequestBodySchema)
6564
.then(async (it) => normalizeAccessTokenRequestBody(it, callerIdentity));
66-
console.log(`###### B ${context.get('requestId')}`, accessTokenRequest)
6765
logger.info({
6866
request: accessTokenRequest
6967
}, 'Access Token Request');

server/src/common/hono-utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export function debugLogger(logger: Logger) {
8080
*/
8181
export async function parseJsonBody<T extends ZodType>(req: HonoRequest, schema: T) {
8282
const body = await req.text();
83-
console.log("###### body", body);
8483
const bodyParseResult = JsonTransformer.pipe(schema).safeParse(body);
85-
console.log("###### bodyParseResult", bodyParseResult);
8684

8785
if (!bodyParseResult.success) {
8886
throw new HTTPException(Status.BAD_REQUEST, {

0 commit comments

Comments
 (0)