Skip to content

Commit 0c3a0b0

Browse files
cez81lunny
authored andcommitted
Add created_at and updated_at in PR json (gogs#52)
1 parent 01c61b8 commit 0c3a0b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitea/pull.go

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type PullRequest struct {
3838
Base *PRBranchInfo `json:"base"`
3939
Head *PRBranchInfo `json:"head"`
4040
MergeBase string `json:"merge_base"`
41+
42+
Created *time.Time `json:"created_at"`
43+
Updated *time.Time `json:"updated_at"`
4144
}
4245

4346
// PRBranchInfo base branch info when send a PR

0 commit comments

Comments
 (0)