Skip to content

fix(review): honor integration labels in picker header#357

Merged
barrettruth merged 1 commit intomainfrom
fix/review-integration-parity
Apr 20, 2026
Merged

fix(review): honor integration labels in picker header#357
barrettruth merged 1 commit intomainfrom
fix/review-integration-parity

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

Forge's review adapter integrations show up through the canonical adapter= flow, but the PR picker's default review action still resolves its visible label without row context. That means built-in integrations were only implicitly covered, and registered/custom adapters that provide a functional label(ctx) could appear in adapter completion while still rendering the wrong picker header label.

Solution

Pass the highlighted PR entry through the review-label helper so the picker can resolve adapter labels from a real review context.

Teach forge.review.label(...) to safely evaluate functional adapter labels when a full review context is available, while preserving the old string-label fallback when only config/options are known.

Add picker and command specs that cover configured integration labels, registered functional adapter labels, and registered adapter completion parity.

Locally verified with changed-file stylua, changed-file selene, lua-language-server --check lua, focused busted for picker/command specs, and full busted (567 successes / 0 failures / 0 errors).

Closes #350

@barrettruth barrettruth merged commit 15db978 into main Apr 20, 2026
8 checks passed
@barrettruth barrettruth deleted the fix/review-integration-parity branch April 20, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check if completion + picker header work with integrations

1 participant