summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/sdk/gitea/pull.go
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-04-27 11:29:46 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-04-27 17:29:46 +0800
commite4a0a04829fc337ca9d0adcacda159fd6021e5de (patch)
tree5e8167757550ee083d8b0a2d904455561bc67196 /vendor/code.gitea.io/sdk/gitea/pull.go
parent8371f94d06cefbd65392af3b5c0f1fd1057429f7 (diff)
downloadgitea-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 'vendor/code.gitea.io/sdk/gitea/pull.go')
-rw-r--r--vendor/code.gitea.io/sdk/gitea/pull.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/pull.go b/vendor/code.gitea.io/sdk/gitea/pull.go
index fcccf07e2b..a50db96e3e 100644
--- a/vendor/code.gitea.io/sdk/gitea/pull.go
+++ b/vendor/code.gitea.io/sdk/gitea/pull.go
@@ -38,6 +38,9 @@ type PullRequest struct {
Base *PRBranchInfo `json:"base"`
Head *PRBranchInfo `json:"head"`
MergeBase string `json:"merge_base"`
+
+ Created *time.Time `json:"created_at"`
+ Updated *time.Time `json:"updated_at"`
}
// PRBranchInfo base branch info when send a PR