Skip to content

Comments

feat: changelog bot (GitHub App)#52

Draft
jxom wants to merge 2 commits intomasterfrom
jxom/bot
Draft

feat: changelog bot (GitHub App)#52
jxom wants to merge 2 commits intomasterfrom
jxom/bot

Conversation

@jxom
Copy link
Member

@jxom jxom commented Feb 8, 2026

Adds a GitHub App bot that handles PR changelog checks, replacing the GitHub Action approach to support fork PRs (which can't access secrets).

What

  • Webhook handler (bot/api/webhook.ts) — listens for pull_request.opened and pull_request.synchronize events
  • GitHub integration (bot/lib/github.ts) — PR file listing, diff fetching, workspace package discovery (Rust/Cargo + Python/uv/Poetry)
  • AI changelog generation (bot/lib/ai.ts) — uses Cerebras API (Llama 3.3 70B) to suggest changelog entries from PR diffs
  • Comment management (bot/lib/comment.ts) — builds PR comments with pre-filled "Add changelog" links

Setup

  1. Create a GitHub App with Pull requests: Read and Issues: Write permissions
  2. Deploy to Vercel with env vars: GITHUB_APP_ID, GITHUB_PRIVATE_KEY, GITHUB_WEBHOOK_SECRET, CEREBRAS_API_KEY (optional)

@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
changelogs-rs Ready Ready Preview, Comment Feb 8, 2026 11:49pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
changelogs: minor
---

Added GitHub bot for automated changelog generation and validation. The bot is a GitHub App built with Cloudflare Workers that checks PRs for changelog files, detects changed packages, and generates AI-powered changelog suggestions using Cerebras API.

Add changelog to commit this to your branch.

@jxom jxom changed the title feat: changelog bot (GitHub App + Vercel) feat: changelog bot (GitHub App) Feb 8, 2026
@socket-security
Copy link

socket-security bot commented Feb 8, 2026

@socket-security
Copy link

socket-security bot commented Feb 8, 2026

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm vite is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: bot/package.jsonnpm/vite@7.3.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/vite@7.3.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

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