textcortex/Claude Code Automatic PR Documentation Generator

Automatically generate comprehensive documentation for merged PRs using Claude Code

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
anthropic_api_keyAnthropic API key (required for direct API, not needed for Bedrock/Vertex)no
min_lines_changedMinimum number of lines changed to trigger documentationno50
min_files_changedMinimum number of files changed to trigger documentationno1
documentation_promptCustom prompt for Claude to generate documentationnoYou are helping to automatically document a merged PR. Create comprehensive documentation for the merged PR #${{ github.event.pull_request.number }}. PR Title: ${{ github.event.pull_request.title }} PR Description: ${{ github.event.pull_request.body }} PR Author: ${{ github.event.pull_request.user.login }} Merge Date: ${{ github.event.pull_request.merged_at }} Instructions: 1. Run: git log --oneline -10 to see recent commits 2. Run: git diff ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} to see what changed in PR #${{ github.event.pull_request.number }} 3. Create directory if needed: mkdir -p docs/prs 4. Create a documentation file with filename format: docs/prs/YYYY-MM-DD-appropriate-title-for-the-pr.md 5. Include this YAML front matter at the top: --- author: Claude date: YYYY-MM-DD title: [descriptive title based on PR] pr_number: ${{ github.event.pull_request.number }} pr_author: ${{ github.event.pull_request.user.login }} --- 6. Document: - Purpose and context of the changes - Key modifications made - Technical implementation details - Impact on the system - Any breaking changes or migration notes - Related issues or follow-up tasks IMPORTANT: Just create and write the documentation file. Do NOT commit or create any branches/PRs - the workflow will handle that.
commit_tagsTags to append to the commit messageno[skip ci]
pr_title_tagsTags to append to the PR titleno[skip ci]
documentation_directoryDirectory where documentation will be creatednodocs/prs
timeout_minutesTimeout for Claude to generate documentation (in minutes)no10
github_tokenGitHub token for Claude to operate with. Only include this if you're connecting a custom GitHub app of your own!no${{ github.token }}
modelModel to use (provider-specific format required for Bedrock/Vertex)no
use_bedrockUse Amazon Bedrock with OIDC authentication instead of direct Anthropic APInofalse
use_vertexUse Google Vertex AI with OIDC authentication instead of direct Anthropic APInofalse
allowed_toolsAdditional tools for Claude to use (the base GitHub tools will always be included)no""
disallowed_toolsTools that Claude should never useno""
custom_instructionsAdditional custom instructions to include in the prompt for Claudeno""
pr_labelsComma-separated list of labels to apply to the PR (labels must already exist in the repository)no""

no outputs