0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-09 10:55:26 +02:00
gitea/models/repo/commit_comment.go
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

9 lines
295 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
// This file intentionally left minimal. The CommitComment junction table
// and all query methods now live in models/issues/commit_comment.go
// alongside the Comment model they reference.
package repo