mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-17 12:44:42 +00:00
Exposing TimeEstimate field in the API (#35475)
Time Estimate field is not included in the issue modification webhooks or issue API endpoints. This PR fixes the field for the API. --------- Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@users.noreply.github.com> Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@cloudparallax.com>
This commit is contained in:
committed by
GitHub
parent
8c8eb4b6f9
commit
fe5afcb022
@@ -59,6 +59,8 @@ func toIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Iss
|
||||
Created: issue.CreatedUnix.AsTime(),
|
||||
Updated: issue.UpdatedUnix.AsTime(),
|
||||
PinOrder: util.Iif(issue.PinOrder == -1, 0, issue.PinOrder), // -1 means loaded with no pin order
|
||||
|
||||
TimeEstimate: issue.TimeEstimate,
|
||||
}
|
||||
|
||||
if issue.Repo != nil {
|
||||
|
Reference in New Issue
Block a user