summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 22:28:04 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2025-05-10 22:44:45 -0700
commit00ae56948227238d9180c7a46420b2929fdbf3e1 (patch)
tree9fed29caa1e635da125d262359b8ffdd5e7dd0bf /hooks
parent435c30da3f926cff5934e434824488e6c7a67ce6 (diff)
downloadci-00ae56948227238d9180c7a46420b2929fdbf3e1.tar.gz
ci-00ae56948227238d9180c7a46420b2929fdbf3e1.zip
fix forward slashes in identifier
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/mod.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/mod.ts b/hooks/mod.ts
index cc29e43..bef822e 100755
--- a/hooks/mod.ts
+++ b/hooks/mod.ts
@@ -45,7 +45,8 @@ Deno.serve(addr, async (req) => {
if (pathname === "/checkout_ci") {
const { remote, rev, refname } = await req.json();
if (![remote, rev, refname].every(validateIdentifier)) {
- return new Response("invalid request", {
+ logger.log("invalid reqwest\n");
+ return new Response("invalid reqwest >:D\n", {
status: 400,
});
}
@@ -64,7 +65,7 @@ Deno.serve(addr, async (req) => {
});
}
- return new Response("idk what that is bro\n", { status: 404 });
+ return new Response("idk what that is bro :((\n", { status: 404 });
} catch (e) {
logger.error("Uncaught exception", e);
return new Response("womp womp D:\n", { status: 500 });