Feat/pr description bot#10
Merged
Merged
Conversation
Adds a zero-dependency PR description bot that triggers on pull_request opened/synchronize, paginates commits and changed files via GitHub REST API, generates a structured description deterministically, and optionally enhances it with OpenAI if OPENAI_API_KEY is set. Uses sparse-checkout so only the script is fetched; no bun install step needed.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add a PR description bot that generates structured descriptions for pull requests.
Why
To automate the generation of PR descriptions, improving clarity and consistency in the review process.
How
scripts/generate-pr-description.ts, uses GitHub REST API to fetch commits and changed files..github/workflows/update-pr-description.ymlto trigger on pull request events.README.mdto include new environment variableX_HANDLEfor thread depth cap.Tests
src/services/engagement.test.tsto cover forceClose user message injection.src/agents/inbound-engagement.test.tsto prevent CI failures.bun test.Risks
X_HANDLEcould impact existing configurations.Changed Files
.github/pr-description-template.md: Added template for auto-generated PR descriptions..github/workflows/update-pr-description.yml: GitHub Action for auto-generating PR descriptions.README.md: Updated to document new environment variable.scripts/generate-pr-description.ts: Core script for generating PR descriptions.src/agents/inbound-engagement.test.ts: Modified to include tests for new features.src/agents/inbound-engagement.ts: Updated to enhance agent voice and thread management.src/agents/writer.ts: Minor updates to agent voice.src/services/engagement.test.ts: New tests for engagement service.src/services/engagement.ts: Modifications for thread depth enforcement.Commits
Auto-generated from commits and changed files. This description will be overwritten when new commits are pushed.