Skip to content

Conversation

@scastlara
Copy link
Collaborator

@scastlara scastlara commented Aug 29, 2025

Adds a new feature where in GitLab lgtm-ai will start using code suggestions instead of just markdown comments.

The LLM can choose whether it wants to do that, through a flag ready_for_replacement.

Review quality should not be affected, since it is the summarizing agent that creates the suggestion: the prompt of the reviewer is unchanged.

I tested it manually in one private GitLab repository, and it seemed to work pretty well. I am sure issues may arise in the future, but it is hard for me to predict them, so maybe better to ship this!

closes #96

@scastlara
Copy link
Collaborator Author

/lgtm review

@github-actions github-actions bot added feature and removed feature labels Aug 29, 2025
@scastlara scastlara merged commit 79d20ce into main Aug 29, 2025
5 checks passed

@model_validator(mode="after")
def change_direction_of_zero(self) -> Self:
# GitLab freaks out if the offset is 0 and the direction is +. We change it to -.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel a distant echo of a math teacher screaming somewhere :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Your doctors math teachers hate this one trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use code suggestions in GitLab

4 participants