v1.6.2: Vertex AI Billing Labels, Network & API Retries, Commit Status De-duplication
π What's New in v1.6.2
π·οΈ Cloud Billing Label Attribution on Vertex AI
- Cost Attribution in GCP Billing: Automatically attaches Google Cloud Billing request labels (
component: gemini-review-action,repo: <owner_repo>) on Vertex AI runs so that review costs can be grouped and analysed directly in GCP Cloud Billing exports (#38 by @SaschaHeyer). - Customisable Labels: Supports custom key-value pairs via the
billing_labelsinput (GEMINI_BILLING_LABELS="team=platform,cost_centre=dev"), automatically sanitising keys and values to comply with GCP label regex and length requirements.
π Resilient Delivery & Network Error Retries
- Transient API Retry Logic: Introduces
post_with_retryto automatically retry review submissions on transient GitHub API hiccups (HTTP5xxserver errors and429rate limits) with tight exponential backoff (1s, 3s) (#36 by @SaschaHeyer). - Network Exception Handling: Catches connection resets and socket timeouts (
requests.exceptions.RequestException), ensuring momentary network flaps do not drop reviews or waste token spend. - Fast Failure on Client Errors: Fails fast on permanent client errors (
403,422) without pointless retries.
π― Accurate Commit Status Signals & De-duplication
- Eliminate Duplicate Status Checks: Suppresses redundant Commit Status API calls during standard
pull_requestworkflow runs where GitHub Actions already tracks and reports check runs natively (#44). - Clean Retry Checks: Preserves explicit commit status updates for manual slash-command re-runs (
/gemini-reviewonissue_commentevents) so that PR checkmarks update cleanly on retry. - Dynamic Workflow Context: Dynamically derives commit status context names from
GITHUB_WORKFLOW.
π΅ Token Pricing & Cache Valuation Refinements
- Zero-Rate Cache Reads: Accurately honours
cache_read = 0.0for providers with free cache reads rather than falling back to default multipliers (#37 by @SaschaHeyer). - Refined Storage Caveats: Improves context-cache storage caveats for token-based cache pricing models like Gemini 3.7 Flash.
π Action Usage Tracking & Best Practice Documentation
- Usage Telemetry Badge: Added workflow and endpoint badge tracking public action usage and active consumer count (#39).
- Security Guidance: Recommends full commit SHA pinning and adds caveats regarding workflow-level concurrency cancellation (#41 by @SaschaHeyer).
π Rolled-In Highlights from Previous Releases
v1.6.1: Cost Estimation Telemetry & Fork PR Security
- Dollar Cost Reporting: Automatically calculates and reports estimated review costs directly in the tokenomics summary table based on official published rates, cached input discounts, and time-boxed promotional pricing.
- Fork PR Workflow Security: Skips automatic
pull_requesttriggers from external forks where secrets are inaccessible, routing maintainers to trigger reviews securely via/gemini-review. - No Silent Drops: Verifies that GitHub accepted review payloads and fails loudly in CI if delivery fails completely.
v1.6.0: Dynamic Context Selection in Sparse Mode
- AI-Powered Dynamic Context Selection: When repository size exceeds the sparse threshold (1.5 MB), Gemini dynamically evaluates candidate repository files and selects up to 8 of the most relevant modules (callers, dependencies, tests, utilities) to include in full context.
- Core Safeguard Budget: Guaranteed inclusion of core config and documentation files (
README.md,pyproject.toml,package.json, etc.).
v1.5.2: Default Model Upgrade to Gemini 3.7 Flash
- Upgraded default model across reviews and issue triaging to
gemini-3.7-flash.
v1.5.1: Code Suggestion Sanitisation & Auto-Indentation
- Sanitised inline code suggestion formatting by stripping outer fences, line-number prefixes, and auto-aligning indentation to match target code nesting.
v1.5.0: Multi-Axis Code Quality Review Directives
- Enhanced review prompt directives with senior engineering evaluation standards, constructive structural remedies, and refined dependency discipline.
v1.4.5: Line Range Accuracy & Discussion Tracking
- Multi-line suggestion targeting, automatic PR comment history and conversation thread tracking, and suppression of redundant re-reviews on inline fixes.
Full Changelog: v1.6.1...v1.6.2