0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 12:26:12 +02:00

3 Commits

Author SHA1 Message Date
yuvrajangadsingh
0f4ebcba10 fix: address review - add archive check, verify repo ownership, remove path fallback 2026-04-02 16:55:52 +05:30
yuvrajangadsingh
17c3b06b21 fix: address lunny's review comments
- use single query with Cols("comment_id").Table("commit_comment")
  instead of loading full CommitComment structs
- remove models/repo/commit_comment.go entirely
2026-04-02 16:55:52 +05:30
yuvrajangadsingh
3a08115768 refactor: use Comment table with junction table for commit comments
Per @lunny's feedback, rework to reuse the existing Comment table
instead of a standalone commit_comment table. The junction table
(commit_comment) now only stores repo_id, commit_sha, comment_id.

Actual comment data (content, tree_path, line, patch, poster) lives
in the Comment table with Type = CommentTypeCommitComment (39).
This gives commit comments reactions, attachments, and all existing
comment infrastructure for free.
2026-04-02 16:55:52 +05:30