Skip to content

chore: enable UI rereview via aireview team#17

Merged
keithah merged 1 commit intomainfrom
chore/add-kodiai-config
Feb 10, 2026
Merged

chore: enable UI rereview via aireview team#17
keithah merged 1 commit intomainfrom
chore/add-kodiai-config

Conversation

@keithah
Copy link
Copy Markdown
Member

@keithah keithah commented Feb 10, 2026

Issues

  • Want UI-only rereview trigger (no comment) via a requested-reviewer team.

Fix

  • Add .kodiai.yml enabling uiRereviewTeam=aireview and auto-request on open.

Notes

  • Team must exist and have repo access (aireview).

Copilot AI review requested due to automatic review settings February 10, 2026 22:49
@keithah keithah merged commit 43342ed into main Feb 10, 2026
@keithah keithah deleted the chore/add-kodiai-config branch February 10, 2026 22:49
Comment thread .kodiai.yml
@@ -0,0 +1,3 @@
review:
uiRereviewTeam: aireview
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical: Configuration mismatch with hardcoded validation

The team name aireview won't work because the handler code (src/handlers/review.ts:62) has a hardcoded set containing only "ai-review" (with hyphen). When a review is requested via this team, the validation at review.ts:201 will fail the match and skip the review.

This means the UI-based rereview via team request will not function as intended.

Suggested change
uiRereviewTeam: aireview
uiRereviewTeam: ai-review

@kodiai
Copy link
Copy Markdown

kodiai Bot commented Feb 10, 2026

Kodiai Review Summary

Critical
.kodiai.yml (2): Configuration mismatch with hardcoded validation
The team name aireview doesn't match the hardcoded validation set in review.ts:62 which only contains "ai-review" (with hyphen). This will cause the team-based rereview trigger to fail validation at review.ts:201 and skip reviews, breaking the core functionality this PR intends to enable.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-level Kodiai configuration to support UI-driven re-review by requesting a reviewer team on PR open/ready-for-review, enabling maintainers to re-trigger reviews via the GitHub “requested reviewers” UI.

Changes:

  • Add .kodiai.yml review.uiRereviewTeam configuration.
  • Enable auto-requesting the UI re-review team when PRs are opened (requestUiRereviewTeamOnOpen: true).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .kodiai.yml
@@ -0,0 +1,3 @@
review:
uiRereviewTeam: aireview
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uiRereviewTeam is set to aireview, but the review handler currently only accepts team-based pull_request.review_requested triggers for the hard-coded team slug/name ai-review (see src/handlers/review.ts where rereviewTeamSlugs = new Set(["ai-review"])). With the current code, re-requesting the aireview team in the UI will be skipped and won’t trigger a re-review. Either change this value to ai-review (if that’s the intended team), or update the handler to treat config.review.uiRereviewTeam as an allowed re-review team.

Suggested change
uiRereviewTeam: aireview
uiRereviewTeam: ai-review

Copilot uses AI. Check for mistakes.
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.

2 participants