mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-19 02:00:01 +02:00
[API] Extend times API (#9200)
Extensively extend the times API. close #8833; close #8513; close #8559
This commit is contained in:
parent
0bcf644da4
commit
f2d03cda96
19 changed files with 916 additions and 194 deletions
|
@ -84,6 +84,8 @@ const (
|
|||
CommentTypeUnlock
|
||||
// Change pull request's target branch
|
||||
CommentTypeChangeTargetBranch
|
||||
// Delete time manual for time tracking
|
||||
CommentTypeDeleteTimeManual
|
||||
)
|
||||
|
||||
// CommentTag defines comment tag type
|
||||
|
@ -100,7 +102,7 @@ const (
|
|||
// Comment represents a comment in commit and issue page.
|
||||
type Comment struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
Type CommentType `xorm:"index"`
|
||||
Type CommentType `xorm:"INDEX"`
|
||||
PosterID int64 `xorm:"INDEX"`
|
||||
Poster *User `xorm:"-"`
|
||||
OriginalAuthor string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue