Skip to content

Commit

Permalink
feat: update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Jun 4, 2024
1 parent b4ad844 commit 16a346a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
"open-source"
],
"dependencies": {
"@octokit/auth-app": "^6.0.4",
"@octokit/core": "^6.0.1",
"@octokit/plugin-paginate-rest": "^10.0.0",
"@octokit/plugin-rest-endpoint-methods": "^11.0.1",
"@octokit/plugin-retry": "^7.0.3",
"@octokit/plugin-throttling": "^9.0.3",
"@octokit/types": "^12.6.0",
"@octokit/webhooks": "^12.0.10",
"@octokit/auth-app": "^7.1.0",
"@octokit/core": "^6.1.2",
"@octokit/plugin-paginate-rest": "^11.3.0",
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
"@octokit/plugin-retry": "^7.1.1",
"@octokit/plugin-throttling": "^9.3.0",
"@octokit/types": "^13.5.0",
"@octokit/webhooks": "^13.2.7",
"@octokit/webhooks-types": "^7.5.1",
"@sinclair/typebox": "^0.32.5",
"dotenv": "^16.4.4",
"smee-client": "^2.0.0",
Expand Down Expand Up @@ -70,7 +71,7 @@
"prettier": "^3.2.5",
"tsx": "^4.7.1",
"typescript": "^5.3.3",
"wrangler": "^3.23.0"
"wrangler": "^3.58.0"
},
"lint-staged": {
"*.ts": [
Expand Down
4 changes: 4 additions & 0 deletions src/github/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export async function getConfig(context: GitHubContext): Promise<PluginConfigura
console.warn("Repository is not defined");
return defaultConfiguration;
}
if (!("owner" in payload.repository) || !payload.repository.owner) {
console.warn("Owner is not defined");
return defaultConfiguration;
}

const _repoConfig = parseYaml(
await download({
Expand Down
3 changes: 2 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { EmitterWebhookEventName as WebhookEventName, emitterEventNames } from "@octokit/webhooks";
import { emitterEventNames } from "@octokit/webhooks";
import { Value } from "@sinclair/typebox/value";
import { GitHubEventHandler } from "./github/github-event-handler";
import { bindHandlers } from "./github/handlers";
import { Env, envSchema } from "./github/types/env";
import { CloudflareKV } from "./github/utils/cloudflare-kv";
import { WebhookEventName } from "@octokit/webhooks-types";

export default {
async fetch(request: Request, env: Env): Promise<Response> {
Expand Down

0 comments on commit 16a346a

Please sign in to comment.