aboutsummaryrefslogtreecommitdiffstats
path: root/services/convert
diff options
context:
space:
mode:
authorIllya Marchenko <github-hek842t@social.mail.stuzer.link>2024-12-05 15:07:53 +0200
committerGitHub <noreply@github.com>2024-12-05 13:07:53 +0000
commit936665bf857787fb653a40dd202d0333c14e0e7e (patch)
treeba9a8676e18c95a9463239d0eb298c7cf05724d8 /services/convert
parentc5422fae9a41b870257b8cbe148ff8e661b190a0 (diff)
downloadgitea-936665bf857787fb653a40dd202d0333c14e0e7e.tar.gz
gitea-936665bf857787fb653a40dd202d0333c14e0e7e.zip
Issue time estimate, meaningful time tracking (#23113)
Redesign the time tracker side bar, and add "time estimate" support (in "1d 2m" format) Closes #23112 --------- Co-authored-by: stuzer05 <stuzer05@gmail.com> Co-authored-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'services/convert')
-rw-r--r--services/convert/issue_comment.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/convert/issue_comment.go b/services/convert/issue_comment.go
index 9ec9ac7684..b8527ae233 100644
--- a/services/convert/issue_comment.go
+++ b/services/convert/issue_comment.go
@@ -76,6 +76,11 @@ func ToTimelineComment(ctx context.Context, repo *repo_model.Repository, c *issu
// so we check for the "|" delimiter and convert new to legacy format on demand
c.Content = util.SecToTime(c.Content[1:])
}
+
+ if c.Type == issues_model.CommentTypeChangeTimeEstimate {
+ timeSec, _ := util.ToInt64(c.Content)
+ c.Content = util.TimeEstimateString(timeSec)
+ }
}
comment := &api.TimelineComment{