Skip to content

feat: add GitHub App configuration (env vars, coder template, triggers)#91

Merged
MathurAditya724 merged 2 commits into
mainfrom
feat/github-app-config
May 19, 2026
Merged

feat: add GitHub App configuration (env vars, coder template, triggers)#91
MathurAditya724 merged 2 commits into
mainfrom
feat/github-app-config

Conversation

@MathurAditya724
Copy link
Copy Markdown
Member

Summary

  • Add GitHub App environment variables to .env.example and coder-template/main.tf
  • Add github_app source triggers to opentower.config.json

Changes

.env.example

New section documenting the three GitHub App env vars with required permissions and events:

  • GITHUB_APP_ID — App ID from settings page
  • GITHUB_APP_PRIVATE_KEY — PEM key (literal \n auto-converted)
  • GITHUB_APP_WEBHOOK_SECRET — HMAC secret for webhook verification

coder-template/main.tf

Three new coder_parameter resources (github_app_id, github_app_private_key, github_app_webhook_secret) wired into both the agent env block and the container env block.

opentower.config.json

Two new triggers mirroring the existing github_webhook triggers:

  • github-app-event — issues, pull_request, check_suite:completed, workflow_run:completed, push
  • github-app-comment — PR review comments, issue comments, PR reviews (with $BOT_LOGIN self-loop guard)

Both use "source": "github_app" so they route through the GithubAppHandler which provides installation tokens for entity enrichment.

Add the three GitHub App environment variables (GITHUB_APP_ID,
GITHUB_APP_PRIVATE_KEY, GITHUB_APP_WEBHOOK_SECRET) to:
- .env.example with documentation on required App permissions and events
- coder-template/main.tf as workspace parameters wired to both the
  agent env block and container env block

Add github_app triggers to opentower.config.json:
- github-app-event: issues, pull_request, check_suite:completed,
  workflow_run:completed, push (mirrors github-event)
- github-app-comment: PR review comments, issue comments, PR reviews
  with $BOT_LOGIN self-loop guard (mirrors github-comment)

Both trigger sets use source: "github_app" so they route through
the GithubAppHandler which uses installation tokens for entity
enrichment API calls.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 19, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
opencode-email-worker 398eeb1 Commit Preview URL

Branch Preview URL
May 19 2026, 09:48 AM

- Memory: requests 1Gi -> 2Gi, limits 4Gi -> 8Gi
- PVC storage: 10Gi -> 50Gi
@MathurAditya724 MathurAditya724 merged commit 8bc318a into main May 19, 2026
2 checks passed
@MathurAditya724 MathurAditya724 deleted the feat/github-app-config branch May 19, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant