Skip to content

๐Ÿง  Action: PR Intelligence

The advanced cognitive engine for automated Pull Request orchestration and risk governance.


[!IMPORTANT] The PR Intelligence engine is the flagship of the QA Hub ecosystem. It provides a multi-vector analysis of Pull Requests, combining hygiene validation, size labeling, and critical file risk detection into a single, high-performance execution.

๐Ÿš€ Key Impact

  • ๐Ÿง  Cognitive Orchestration: Simultaneously handles PR hygiene, labeling, and risk analysis.
  • ๐Ÿ›ก๏ธ Governance Guardrails: Automatically flags high-risk changes to mission-critical files.
  • ๐Ÿ“ Automated Sizing: Dynamically labels PRs by complexity to optimize reviewer focus.
  • ๐Ÿšฅ Standardized Quality: Enforces Conventional Commits across the entire engineering team.

โš™๏ธ Configuration

Input Required Default Description
github-token Yes - Token with PR and labels write permissions.
critical-patterns No environment.py,config.yaml,... Patterns to trigger risk alerts.
validate-hygiene No true Enable Conventional Commit validation.
label-size No true Enable automated XL/L/M/S labeling.
analyze-risk No true Enable detection of critical file changes.

โšก Quick Start

- name: ๐Ÿง  Run Intelligence Engine
  uses: carlos-camara/qa-hub-actions/pr-intelligence@main
  with:
    github-token: ${{ secrets.GITHUB_TOKEN }}

[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/pr-intelligence/)