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

feat: phase 1 changes: add comments feat to unchanged lines in the pullrequest #32471

Open
wants to merge 45 commits into
base: main
Choose a base branch
from

Conversation

rajesh-jonnalagadda
Copy link

@rajesh-jonnalagadda rajesh-jonnalagadda commented Nov 11, 2024

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 11, 2024
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 11, 2024
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Nov 11, 2024
@rajesh-jonnalagadda rajesh-jonnalagadda force-pushed the feat-32257-add-comments-unchanged-lines-and-show branch 2 times, most recently from e59800b to ed80303 Compare November 11, 2024 02:46
@rajesh-jonnalagadda rajesh-jonnalagadda force-pushed the feat-32257-add-comments-unchanged-lines-and-show branch from ed80303 to abd1d2f Compare November 11, 2024 03:34
@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as draft November 11, 2024 16:59
@rajesh-jonnalagadda rajesh-jonnalagadda force-pushed the feat-32257-add-comments-unchanged-lines-and-show branch from 8c34f45 to 7c39ad2 Compare November 11, 2024 17:27
@rajesh-jonnalagadda rajesh-jonnalagadda force-pushed the feat-32257-add-comments-unchanged-lines-and-show branch from 3fbf96f to ccd797a Compare November 11, 2024 17:50
@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as ready for review November 11, 2024 18:29
@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as draft November 11, 2024 19:19
@rajesh-jonnalagadda rajesh-jonnalagadda marked this pull request as ready for review November 11, 2024 23:56
@rajesh-jonnalagadda
Copy link
Author

@lunny Can you please review

@rajesh-jonnalagadda
Copy link
Author

@lunny Could you please review my changes? If the PR isn't relevant, feel free to close it.

@lunny
Copy link
Member

lunny commented Nov 13, 2024

@lunny Could you please review my changes? If the PR isn't relevant, feel free to close it.

I will review it in the following week.

@rajesh-jonnalagadda
Copy link
Author

@lunny fixed the issues. can you please review

@lunny ^^ can you please review

@rajesh-jonnalagadda
Copy link
Author

rajesh-jonnalagadda commented Dec 5, 2024

@lunny Can you please review?

@lunny
Copy link
Member

lunny commented Dec 6, 2024

Added one comment but it will display multiple times.

图片

@rajesh-jonnalagadda
Copy link
Author

Added one comment but it will display multiple times.

图片

ideally, we should not allow comment on the diffLinesection—fixed that.

@rajesh-jonnalagadda
Copy link
Author

@lunny please review

routers/web/repo/compare.go Outdated Show resolved Hide resolved
routers/web/repo/compare.go Outdated Show resolved Hide resolved
routers/web/web.go Outdated Show resolved Hide resolved
services/gitdiff/gitdiff.go Outdated Show resolved Hide resolved
RightHunkSize: 4,
HasComments: false,
LastRightCommentIdx: 0,
RightCommentIdx: 0,
Copy link
Member

Choose a reason for hiding this comment

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

Please add a test which has the comment.

@@ -100,6 +101,13 @@ function initRepoDiffConversationForm() {
}
});

$(document).on('click', '.pull-request-diff-comments', async (e) => {
Copy link
Member

Choose a reason for hiding this comment

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

We have a plan to remove jquery. So new code should not use jquery any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/frontend modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants