Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve code review comments#35077

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
lunny wants to merge19 commits intogo-gitea:main
base:main
Choose a base branch
Loading
fromlunny:lunny/code_review_line_number

Conversation

lunny
Copy link
Member

@lunnylunny commentedJul 14, 2025
edited
Loading

Fix#30844
Fix#21113
Related to#31551

  • Code review comments now support cross-commit referencing as long as the line still exists in the updated diff. Line numbers are dynamically calculated.
  • Fixed a bug where force-pushing or rebasing the target branch could result in the merged commit IDs of the pull request being garbage collected and lost.

@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelJul 14, 2025
@github-actionsgithub-actionsbot added modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code modifies/templatesThis PR modifies the template files modifies/migrations labelsJul 14, 2025
@lunnylunnyforce-pushed thelunny/code_review_line_number branch 2 times, most recently fromfd82a60 to791339aCompareJuly 15, 2025 23:36
@@ -730,28 +730,23 @@ func prepareIssueViewCommentsAndSidebarParticipants(ctx *context.Context, issue
}
comment.Review.Reviewer = user_model.NewGhostUser()
}
if err = comment.Review.LoadCodeComments(ctx); err != nil {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

duplicated withLoadAttributes

@lunnylunnyforce-pushed thelunny/code_review_line_number branch from4e509fc to3f4596fCompareJuly 16, 2025 17:03
@lunnylunnyforce-pushed thelunny/code_review_line_number branch from3f4596f toaaed5c9CompareJuly 19, 2025 01:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
lgtm/need 2This PR needs two approvals by maintainers to be considered for merging.modifies/apiThis PR adds API routes or modifies themmodifies/frontendmodifies/goPull requests that update Go codemodifies/templatesThis PR modifies the template files
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Code review comment line number problem. Inline comments show up on wrong line if force push occurs before submitting comment
2 participants
@lunny@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp