- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.2k
feat(diff): Enable commenting on expanded lines in PR diffs #35662
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(diff): Enable commenting on expanded lines in PR diffs #35662
Conversation
75d0beb    to
    75193bd      
    Compare
  
    | Hi @techknowlogick / @lunny, could you please have a look | 
| One concern is how users can tell there are comments on lines that aren’t currently expanded. It would be helpful to display an icon or marker to indicate the presence of comments when those lines cannot be automatically expanded. I believe this is also one of the main challenges of this issue. | 
| 
 Thanks, will look into a suitable way to address this. | 
75193bd    to
    cb9d8aa      
    Compare
  
    cb9d8aa    to
    17be181      
    Compare
  
    | Hi @lunny, I added badges on the code expanding buttons to indicate that there are hidden comments outside of the diff. I think this should cover it, in combination of the code context preview in the conversations tab to show where the comments are in context as well at a glance. Screen.Recording.2025-10-15.at.15.02.42.mov  | 
| This floating counter looks great, but there’s a small issue: if the comments are part of the content loaded the second time, then after the first load, the floating box doesn’t appear. | 
497f690    to
    b234f31      
    Compare
  
    | 
 Hadn't noticed, updated to include updated count of hidden comments if not revealed yet after code expansion. Screen.Recording.2025-10-16.at.17.34.43.mov | 
| Hi @lunny, thanks for the feedback. Addressed them in comments/changes & updated screen recording with fixes. Please have a look. | 
| The root problem is that  
 | 
      
        
              This comment was marked as resolved.
        
        
      
    
  This comment was marked as resolved.
d920c87    to
    78cd2ce      
    Compare
  
    | Oh wait, a new problem. When using Split diff, then if the comment is added by "left" side, then the assumption   Update: made a quick fix. af864c2 | 
| 
 Thanks, the semantics here have really got into the weeds for me. But I think I see what you mean | 
* giteaofficial/main: Avoid emoji mismatch and allow to only enable chosen emojis (go-gitea#35692) feat(diff): Enable commenting on expanded lines in PR diffs (go-gitea#35662) Fix various bugs (go-gitea#35684) Fix workflow run event status while rerunning a failed job (go-gitea#35689) Use gitrepo.Repository instead of wikipath (go-gitea#35398) [skip ci] Updated translations via Crowdin Bump `actions/labeler` to v6 (go-gitea#35681) Use LFS object size instead of blob size when viewing a LFS file (go-gitea#35679)
This is a follow up for go-gitea#35662, and also fix go-gitea#31181, help go-gitea#30275, fix go-gitea#31161
This is a follow up for go-gitea#35662, and also fix go-gitea#31181, help go-gitea#30275, fix go-gitea#31161






Fixes #32257
/claim #32257
Implemented commenting on unchanged lines in Pull Request diffs, lines are accessed by expanding the diff preview. Comments also appear in the "Files Changed" tab on the unchanged lines where they were placed.
Screenshots
Screen.Recording.2025-10-16.at.17.34.43.mov
Screen.Recording.2025-10-18.at.14.33.43.mp4
Screen.Recording.2025-10-18.at.06.08.55.mov