lemonade-hq/PR Complexity Analyzer
Analyzes GitHub pull request complexity using LLMs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pr-url | GitHub PR URL (e.g., https://github.com/owner/repo/pull/123) | no | ${{ github.event.pull_request.html_url }} |
| openai-api-key | OpenAI API key for LLM analysis | yes | — |
| github-token | GitHub token for API access (defaults to GITHUB_TOKEN) | no | ${{ github.token }} |
| model | OpenAI model name | no | gpt-5.1 |
| format | Output format (json or markdown) | no | json |
| output-file | Path to write output file (optional) | no | — |
| timeout | Request timeout in seconds | no | 120 |
| max-tokens | Maximum tokens for diff excerpt | no | 50000 |
| hunks-per-file | Maximum hunks per file | no | 2 |
| sleep-seconds | Sleep between GitHub API calls | no | 0.7 |
| api-base-url | Base URL for OpenAI-compatible API endpoint | no | — |
Outputs
| name | description |
|---|---|
| score | Complexity score (1-10) |
| explanation | Explanation of the complexity score |
| model | Model used for analysis (e.g., gpt-4, gpt-5.1) |
| output | Full analysis result in JSON format |