Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline suggestion refactor + supporting GitLab #48

Merged
merged 4 commits into from
Jul 14, 2023
Merged

Conversation

hussam789
Copy link
Collaborator

@hussam789 hussam789 commented Jul 13, 2023

@hussam789 hussam789 requested review from okotek and mrT23 July 13, 2023 17:47
self.git_provider.publish_inline_comment(content, relevant_file, relevant_line_in_file)
Copy link
Collaborator

@mrT23 mrT23 Jul 13, 2023

Choose a reason for hiding this comment

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

@hussam789 beware of this change. double check to make sure the GitHub still works, and compare to the updated repo code

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It tested Github as well, example running on this pr after the change:
#43

@hussam789
Copy link
Collaborator Author

@mrT23 I added a small fix to solve this issue for Gitlab and Github:
The model often adds a '+' to the beginning of the relevant_line_in_file even if originally it's a context line

Example from https://github.com/Codium-ai/pr-agent/pull/43/files :
image

image

@hussam789 hussam789 merged commit 23a249c into main Jul 14, 2023
@hussam789 hussam789 deleted the hl/gitlab_fix branch July 14, 2023 19:53
yochail pushed a commit to yochail/pr-agent that referenced this pull request Feb 11, 2024
Inline suggestion refactor + supporting GitLab
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.

3 participants