Skip to content

Commit

Permalink
Add create_at and updated_at in PR json
Browse files Browse the repository at this point in the history
 * Move new fields to object creation (use reference)
 * Vendor: Update SDK
  • Loading branch information
cez81 committed Apr 27, 2017
1 parent 8371f94 commit 5a84899
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions models/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions vendor/code.gitea.io/sdk/gitea/pull.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/code.gitea.io/sdk/gitea/release.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"revisionTime": "2017-04-07T07:44:04Z"
},
{
"checksumSHA1": "7/pZpgSIh/M76hwvldhgRqege/Q=",
"checksumSHA1": "xACJysFK1sK/D5655EpU48mw2vo=",
"path": "code.gitea.io/sdk/gitea",
"revision": "cad003b49151391f9a22f2e2edb2f348f51f9dde",
"revisionTime": "2017-04-15T14:32:48Z"
"revision": "0c3a0b0b5ea6edfb5bf3a4c81ebda6d207ecdfad",
"revisionTime": "2017-04-27T00:40:26Z"
},
{
"checksumSHA1": "IyfS7Rbl6OgR83QR7TOfKdDCq+M=",
Expand Down

0 comments on commit 5a84899

Please sign in to comment.