refactor: move per-reviewer defaults into adapters, add greptile adapter#167
Merged
ichoosetoaccept merged 1 commit intomainfrom Feb 17, 2026
Merged
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Greptile SummaryRefactors per-reviewer defaults to be adapter-owned instead of config-owned, adding Greptile support. Adapters now declare Key changes:
Architecture improvement: Confidence Score: 5/5
Important Files Changed
Class DiagramclassDiagram
class ReviewerAdapter {
<<abstract>>
+name: str
+auto_resolves_comments: bool
+default_auto_resolve_stale: bool
+default_resolve_levels: list[Severity]
+classify_severity(comment_body) Severity
+auto_resolves_thread(comment_body) bool
+identify(author) bool
}
class UnblockedAdapter {
+name = "unblocked"
+auto_resolves_comments = False
+default_auto_resolve_stale = True
+default_resolve_levels = all
+identify(author) bool
}
class DevinAdapter {
+name = "devin"
+auto_resolves_comments = True
+default_auto_resolve_stale = False
+default_resolve_levels = [INFO]
+classify_severity(comment_body) Severity
+auto_resolves_thread(comment_body) bool
+identify(author) bool
}
class CodeRabbitAdapter {
+name = "coderabbit"
+auto_resolves_comments = True
+default_auto_resolve_stale = False
+default_resolve_levels = []
+identify(author) bool
}
class GreptileAdapter {
+name = "greptile"
+auto_resolves_comments = False
+default_auto_resolve_stale = True
+default_resolve_levels = all
+identify(author) bool
}
class Config {
+reviewers: dict[str, ReviewerConfig]
+_apply_reviewer_defaults() Config
+get_reviewer(name) ReviewerConfig
+can_resolve(reviewer_name, severity) tuple
}
class ReviewerConfig {
+enabled: bool
+auto_resolve_stale: bool
+resolve_levels: list[Severity]
+require_reply_before_resolve: bool
}
ReviewerAdapter <|-- UnblockedAdapter
ReviewerAdapter <|-- DevinAdapter
ReviewerAdapter <|-- CodeRabbitAdapter
ReviewerAdapter <|-- GreptileAdapter
Config --> ReviewerAdapter : queries REVIEWERS registry
Config "1" *-- "*" ReviewerConfig : contains
Last reviewed commit: d1ac435 |
d66bca2 to
cf6e9b1
Compare
cf6e9b1 to
d1ac435
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adapters become the source of truth for per-reviewer defaults.
ReviewerConfigstays for user overrides via JSON-in-env (CRB_REVIEWERS). Adds greptile adapter.Changes
default_resolve_levelsanddefault_auto_resolve_staleonReviewerAdapterbase, overridden by Devin, CodeRabbit, Greptile_REVIEWER_DEFAULTSdict:_apply_reviewer_defaultsvalidator now queries adapter registry directlygreptile-apps/greptile-apps[bot],needs_manual_rereview=True, rereview via@greptileai reviewCRB_REVIEWERSpattern with adapter defaults table, dev setup snippetCloses #165, closes #166