diff options
author | Jonas Östanbäck <cez81@users.noreply.github.com> | 2017-04-27 11:29:46 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-04-27 17:29:46 +0800 |
commit | e4a0a04829fc337ca9d0adcacda159fd6021e5de (patch) | |
tree | 5e8167757550ee083d8b0a2d904455561bc67196 /models/pull.go | |
parent | 8371f94d06cefbd65392af3b5c0f1fd1057429f7 (diff) | |
download | gitea-e4a0a04829fc337ca9d0adcacda159fd6021e5de.tar.gz gitea-e4a0a04829fc337ca9d0adcacda159fd6021e5de.zip |
Add create_at and updated_at in PR json (#1616)
* Move new fields to object creation (use reference)
* Vendor: Update SDK
Diffstat (limited to 'models/pull.go')
-rw-r--r-- | models/pull.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/pull.go b/models/pull.go index ababe79dd4..07c58446da 100644 --- a/models/pull.go +++ b/models/pull.go @@ -197,6 +197,8 @@ func (pr *PullRequest) APIFormat() *api.PullRequest { Base: apiBaseBranchInfo, Head: apiHeadBranchInfo, MergeBase: pr.MergeBase, + Created: &pr.Issue.Created, + Updated: &pr.Issue.Updated, } if pr.Status != PullRequestStatusChecking { |