Commit 0aa7f7d
feat(bot): use Probot programmatic API with t3-env validation (#2015)
* feat(bot): add custom env var mapping for Fly.io deployment
- Create server.ts entry point that maps GITHUB_BOT_* env vars to Probot's expected names
- Update package.json start script to use new server entry point
- Update Dockerfile CMD to use new server entry point
This allows the bot to use custom environment variable names (GITHUB_BOT_APP_ID, GITHUB_BOT_PRIVATE_KEY, GITHUB_BOT_WEBHOOK_SECRET, etc.) while maintaining compatibility with Probot's default env var names.
Co-Authored-By: yujonglee <[email protected]>
* refactor(bot): use Probot programmatic API with t3-env validation
- Create env.ts with t3-env validation for GITHUB_BOT_* env vars
- Refactor server.ts to use Server class with Probot.defaults()
- Add @t3-oss/env-core and zod dependencies
This uses the programmatic API to pass appId, privateKey, and secret
directly to Probot instead of mapping environment variables.
Co-Authored-By: yujonglee <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent b94ee38 commit 0aa7f7d
File tree
5 files changed
+60
-107
lines changed- apps/bot
- src
5 files changed
+60
-107
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | | - | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments