fix: map REVIEW_MAX_COMMENTS to both inline and context limits #3
Reference in New Issue
Block a user
Delete Branch "fix/review-max-comments-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
REVIEW_MAX_COMMENTS was only mapped to REVIEW__MAX_INLINE_COMMENTS which
only limits comments per-file. Added REVIEW__MAX_CONTEXT_COMMENTS mapping
to also limit total comments per MR, which is what users expected.
Also added missing LLM__META__TEMPERATURE env var mapping.
[README.md:30] The description is ambiguous: clarify whether the limit applies per-file or per-review for inline comments, and specify if context review has a separate total limit.
#ai-review-inline
[compose.yaml:22] Comment is misleading: MAX_INLINE_COMMENTS is per-file, but MAX_CONTEXT_COMMENTS appears to be per-MR total, not both 'per-MR'.
#ai-review-inline
[compose.yaml:24] Both MAX_INLINE_COMMENTS and MAX_CONTEXT_COMMENTS read from the same env var REVIEW_MAX_COMMENTS, making them always identical and unable to be configured independently.
#ai-review-inline
The documentation was clarified to better explain that
REVIEW_MAX_COMMENTSapplies both per-file for inline comments and as a total limit for context review comments. A newLLM__META__TEMPERATUREenvironment variable was added with a sensible default of 0.2 for more consistent AI behavior. The changes improve configuration clarity and user control. Consider documenting theLLM_TEMPERATUREvariable in the README.md environment variables table for completeness.#ai-review-summary
Pull request closed