aboutsummaryrefslogtreecommitdiffstats
path: root/services/convert
diff options
context:
space:
mode:
Diffstat (limited to 'services/convert')
-rw-r--r--services/convert/issue.go1
-rw-r--r--services/convert/pull.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/services/convert/issue.go b/services/convert/issue.go
index 3d1b21c6bf..bcb1618e8f 100644
--- a/services/convert/issue.go
+++ b/services/convert/issue.go
@@ -47,6 +47,7 @@ func ToAPIIssue(ctx context.Context, issue *issues_model.Issue) *api.Issue {
Comments: issue.NumComments,
Created: issue.CreatedUnix.AsTime(),
Updated: issue.UpdatedUnix.AsTime(),
+ PinOrder: issue.PinOrder,
}
if issue.Repo != nil {
diff --git a/services/convert/pull.go b/services/convert/pull.go
index 598187ca6e..1ac0f4e96f 100644
--- a/services/convert/pull.go
+++ b/services/convert/pull.go
@@ -72,6 +72,7 @@ func ToAPIPullRequest(ctx context.Context, pr *issues_model.PullRequest, doer *u
Deadline: apiIssue.Deadline,
Created: pr.Issue.CreatedUnix.AsTimePtr(),
Updated: pr.Issue.UpdatedUnix.AsTimePtr(),
+ PinOrder: apiIssue.PinOrder,
AllowMaintainerEdit: pr.AllowMaintainerEdit,