Skip to content

Commit 7e40e14

Browse files
authored
Limit status bot repos (#7486)
* Limit status bot repos * Create afraid-cooks-switch.md * Update index.ts * fox format
1 parent 15aa936 commit 7e40e14

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/afraid-cooks-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"devprod-status-bot": patch
3+
---
4+
5+
Limit status bot repos

packages/devprod-status-bot/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,10 @@ export default {
530530
}
531531

532532
if (url.pathname.startsWith("/pr-project") && request.method === "POST") {
533-
const [_, _prefix, repo, prNumber] = url.pathname.split("/");
533+
const [_, _prefix, _repo, prNumber] = url.pathname.split("/");
534534
return await addPRToProject(
535535
env.GITHUB_PAT,
536-
repo.replaceAll(/[^a-z-]/g, "-"),
536+
"workers-sdk",
537537
prNumber.replaceAll(/[^0-9]/g, "-")
538538
);
539539
}

0 commit comments

Comments
 (0)