rafaeltorresng/PR Explainer AI
Generate an interactive HTML explanation and quiz for pull requests with OpenRouter models.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| openrouter_api_key | OpenRouter API key used to call the LLM. | yes | — |
| max_lines | Maximum added plus deleted lines allowed before skipping generation. | no | 15000 |
| openrouter_model | OpenRouter model identifier. Users can override it with any model available in OpenRouter. | no | deepseek/deepseek-v4-flash |
| language | Language used for the generated prompt, HTML artifact, and PR comments. Supported values: en, pt-BR. | no | en |
| output_file | Generated HTML filename. | no | pr-explanation.html |
| artifact_name | Artifact name used when uploading the generated HTML. | no | pr-explanation-html |
| base_ref | Base ref used to compute the diff. Optional outside pull_request events. | no | "" |
| comment_on_pr | Whether to post a PR comment with artifact instructions. | no | true |
Outputs
| name | description |
|---|---|
| should_run | Whether generation ran after diff sizing. |
| lines_changed | Added plus deleted lines counted from the git diff. |
| artifact_name | Artifact name used by the upload step. |