mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-09 10:55:26 +02:00
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.
9 lines
295 B
Go
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
|