Skip to content

Commit bdf2a83

Browse files
committed
add URL into GetPullRequest
1 parent 3b879d6 commit bdf2a83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/pull.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func (pr *PullRequest) apiFormat(e Engine) *api.PullRequest {
197197

198198
apiPullRequest := &api.PullRequest{
199199
ID: pr.ID,
200+
URL: pr.Issue.HTMLURL(),
200201
Index: pr.Index,
201202
Poster: apiIssue.Poster,
202203
Title: apiIssue.Title,

0 commit comments

Comments
 (0)