Skip to content

Commit

Permalink
Limit status bot repos (#7486)
Browse files Browse the repository at this point in the history
* Limit status bot repos

* Create afraid-cooks-switch.md

* Update index.ts

* fox format
  • Loading branch information
penalosa authored Dec 16, 2024
1 parent 15aa936 commit 7e40e14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-cooks-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"devprod-status-bot": patch
---

Limit status bot repos
4 changes: 2 additions & 2 deletions packages/devprod-status-bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,10 @@ export default {
}

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

0 comments on commit 7e40e14

Please sign in to comment.