Skip to content

Commit f94e83f

Browse files
Remove changelog webhook handling and add devin_changelog workflow (#1889)
* Remove changelog webhook handling and add devin_changelog workflow Co-Authored-By: yujonglee <[email protected]> * Update pnpm-lock.yaml after removing @octokit/webhooks-types Co-Authored-By: yujonglee <[email protected]> * Simplify changelog workflow prompt to reference AGENTS.md guide Co-Authored-By: yujonglee <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: yujonglee <[email protected]>
1 parent 636751a commit f94e83f

File tree

6 files changed

+21
-127
lines changed

6 files changed

+21
-127
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Devin Changelog
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
trigger-devin:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger Devin Session
13+
run: |
14+
curl --request POST \
15+
--url https://api.devin.ai/v1/sessions \
16+
--header "Authorization: Bearer ${{ secrets.DEVIN_API_KEY }}" \
17+
--header "Content-Type: application/json" \
18+
--data "{
19+
\"prompt\": \"Create new changelog entry for tag: ${{ github.event.release.tag_name }}, following guide at apps/web/content/changelog/AGENTS.md.\",
20+
\"idempotent\": true
21+
}"

apps/api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"typecheck": "tsc --noEmit"
88
},
99
"dependencies": {
10-
"@octokit/webhooks-types": "^7.6.1",
1110
"@sentry/bun": "^10.26.0",
1211
"@supabase/supabase-js": "^2.84.0",
1312
"@t3-oss/env-core": "^0.13.8",

apps/api/src/env.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ export const env = createEnv({
1414
STRIPE_WEBHOOK_SECRET: z.string().min(1),
1515
OPENROUTER_API_KEY: z.string().min(1),
1616
DEEPGRAM_API_KEY: z.string().min(1),
17-
GITHUB_WEBHOOK_SECRET: z.string().min(1),
18-
DEVIN_API_KEY: z.string().min(1),
1917
},
2018
runtimeEnv: Bun.env,
2119
emptyStringAsUndefined: true,

apps/api/src/github.ts

Lines changed: 0 additions & 104 deletions
This file was deleted.

apps/api/src/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { logger } from "hono/logger";
88

99
import { syncBillingForStripeEvent } from "./billing";
1010
import { env } from "./env";
11-
import { handleReleaseEvent, verifyGitHubWebhook } from "./github";
1211
import { listenSocketHandler } from "./listen";
1312
import { verifyStripeWebhook } from "./stripe";
1413
import { requireSupabaseAuth } from "./supabase";
@@ -102,17 +101,6 @@ app.post("/webhook/stripe", verifyStripeWebhook, async (c) => {
102101
return c.json({ ok: true });
103102
});
104103

105-
app.post("/webhook/github", verifyGitHubWebhook, async (c) => {
106-
try {
107-
await handleReleaseEvent(c.var.githubEvent);
108-
} catch (error) {
109-
console.error(error);
110-
return c.json({ error: "github_webhook_failed" }, 500);
111-
}
112-
113-
return c.json({ ok: true });
114-
});
115-
116104
if (env.NODE_ENV === "development") {
117105
app.get("/listen", listenSocketHandler);
118106
} else {

pnpm-lock.yaml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)