A GitHub Action that automatically generates comprehensive pull request descriptions using Claude AI. This action analyzes your PR's code changes, commit messages, and metadata to create professional, structured descriptions that improve code review efficiency.
- AI-Powered Analysis: Uses Claude 3.5 Haiku to analyze code diffs and commit messages
- Smart Filtering: Configurable ignore patterns to exclude generated files, dependencies, etc.
- Token Optimization: Implements caching to reduce API costs
- Zero Configuration: Works out of the box with minimal setup
Add this action to your workflow file (e.g.,
.github/workflows/pr-description.yml):
name: Generate PR Description
on:
pull_request:
types: [opened, synchronize]
jobs:
generate-description:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Generate PR Description
uses: abhinavchadaga/claude-automated-pr-desc-action@v1
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}- name: Generate PR Description
uses: abhinavchadaga/claude-automated-pr-desc-action@v1
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
ignore-patterns: 'dist/**,**/*.min.js,node_modules/**,**/*.lock'| Input | Description | Required | Default |
|---|---|---|---|
anthropic-api-key |
Anthropic API key for Claude | Yes | - |
github-token |
GitHub token for API access | Yes | ${{ github.token }} |
ignore-patterns |
Comma-separated glob patterns to exclude from analysis | No | '' |
| Output | Description |
|---|---|
description |
The generated PR description |
- Sign up at Anthropic Console
- Create a new API key
- Add it to your repository secrets as
ANTHROPIC_API_KEY
Ensure your workflow has the following permissions:
permissions:
contents: read
pull-requests: writeCreate .github/workflows/pr-description.yml with the configuration above.
The action generates descriptions in this format:
----------------------------------------------------------------------
## Summary
Adds user authentication system with JWT tokens and password hashing for secure login functionality.
## Changes Made
- Implemented JWT-based authentication middleware
- Added password hashing with bcrypt
- Created user login and registration endpoints
- Updated database schema for user credentials
- Added input validation for authentication forms
---
---