Skip to content

Feat/pr description bot#10

Merged
arvindrk merged 7 commits into
mainfrom
feat/pr-description-bot
May 9, 2026
Merged

Feat/pr description bot#10
arvindrk merged 7 commits into
mainfrom
feat/pr-description-bot

Conversation

@arvindrk
Copy link
Copy Markdown
Owner

@arvindrk arvindrk commented May 9, 2026

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

  • PR Description Bot: Implemented in scripts/generate-pr-description.ts, uses GitHub REST API to fetch commits and changed files.
  • GitHub Action: Configured in .github/workflows/update-pr-description.yml to trigger on pull request events.
  • Thread Management: Enhanced inbound engagement and writer agent voices for improved user interaction.
  • 1:1 Thread Depth Cap: Enforced a maximum of 2 probes in threads, with a mechanism to skip after closure.
  • Documentation: Updated README.md to include new environment variable X_HANDLE for thread depth cap.

Tests

  • Added tests in src/services/engagement.test.ts to cover forceClose user message injection.
  • Mocked DB dependencies in src/agents/inbound-engagement.test.ts to prevent CI failures.
  • Run tests with bun test.

Risks

  • Changes to agent behavior may affect user interactions.
  • Introduction of new environment variable X_HANDLE could 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

  • feat: upgrade inbound engagement voice to witty/short, add forceClose thread meta
  • feat: upgrade writer agent voice to witty/quirky/short
  • feat: enforce 1:1 thread depth cap (2 probes max, skip after close)
  • test: cover forceClose user message injection in inbound engagement agent
  • docs: add X_HANDLE env var for 1:1 thread depth cap
  • fix: mock DB deps in engagement.test.ts to prevent CI failure
  • feat: add GitHub Action to auto-generate PR descriptions

Auto-generated from commits and changed files. This description will be overwritten when new commits are pushed.

arvindrk added 7 commits May 8, 2026 17:23
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.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

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

Project Deployment Actions Updated (UTC)
twitter-agent Ready Ready Preview, Comment May 9, 2026 0:55am

@arvindrk arvindrk merged commit ab43978 into main May 9, 2026
7 checks passed
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