diff options
author | Pedro Alves <pta2002@users.noreply.github.com> | 2020-10-25 21:49:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-25 17:49:48 -0400 |
commit | c40df54e28fe1a1cfd0fc5f834451996d96028f3 (patch) | |
tree | c4337b06fe24f70b385dd6b7e1198f2d4c26de9b /models | |
parent | 756c090dbef0f4a1caffe8292780eea6c1d24c77 (diff) | |
download | gitea-c40df54e28fe1a1cfd0fc5f834451996d96028f3.tar.gz gitea-c40df54e28fe1a1cfd0fc5f834451996d96028f3.zip |
Group Label Changed Comments in timeline (#13304)
* Create function to group label comments
* Combine multiple label additions into one
* Group removed and added labels in the same comment
* Fix indentation on comments.tmpl
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'models')
-rw-r--r-- | models/issue_comment.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 5c053ec02a..63256ddc99 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -124,7 +124,9 @@ type Comment struct { IssueID int64 `xorm:"INDEX"` Issue *Issue `xorm:"-"` LabelID int64 - Label *Label `xorm:"-"` + Label *Label `xorm:"-"` + AddedLabels []*Label `xorm:"-"` + RemovedLabels []*Label `xorm:"-"` OldProjectID int64 ProjectID int64 OldProject *Project `xorm:"-"` |