๐ค Action: PR Summarizer
AI-powered deep technical analysis and high-fidelity visual summaries for Pull Requests, providing surgical visibility into code impact.
[!IMPORTANT] The PR Summarizer leverages LLM intelligence to automatically read code diffs and inject a beautiful, executive-level summary directly into the Pull Request description.
๐ Key Impact
- ๐๏ธ Structural Intelligence: Automatically identifies new classes, functions, and deleted methods with professional badges (
[NEW],[MOD],[FIX]). - ๐ API Footprint: Scans for new or modified API routes (Express/Flask) and documents the effective impact.
- ๐ฏ Locator Awareness: Highlights exactly which UI locators were updated in
.yamlfiles for GUI test suites. - ๐ Impact Analysis: Generates a dynamic metrics table with visual intensity bars (โ) to represent the volume of changes.
- โจ Gherkin Insights: Extracts new BDD scenarios and quality tags (
@smoke,@critical) from changed feature files.
๐ Quick Start
Drop this snippet into your PR intelligence workflow:
steps:
- name: ๐ค Generate AI Summary
uses: carlos-camara/qa-hub-actions/pr-summarizer@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: "description"
โ๏ธ Configuration
| Input | Description | Required | Default |
|---|---|---|---|
github-token |
GitHub token for PR description/comment updates. | Yes | N/A |
target |
Where to post the summary: description or comment. |
No | description |
domain-mapping |
Optional JSON mapping of file patterns to domains. | No | {} |
๐ Impact Analysis Example
The action injects a premium overview into your PR:
| Category | Scope | Status |
|---|---|---|
| Backend | 5 | โโโโโ |
| Testing | 12 | โโโโโโโโโโโโ |
| Docs | 3 | โโโ |
[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/pr-summarizer/)