Skip to content

Commit 06902fe

Browse files
awwalkerlunny
authored andcommitted
expose url field in issues and pull requests (gogs#39)
1 parent c662dd0 commit 06902fe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

gitea/issue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type PullRequestMeta struct {
3030
// Issue an issue to a repository
3131
type Issue struct {
3232
ID int64 `json:"id"`
33+
URL string `json:"url"`
3334
Index int64 `json:"number"`
3435
Poster *User `json:"user"`
3536
Title string `json:"title"`

gitea/pull.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
// PullRequest represents a pull request API object.
1515
type PullRequest struct {
1616
ID int64 `json:"id"`
17+
URL string `json:"url"`
1718
Index int64 `json:"number"`
1819
Poster *User `json:"user"`
1920
Title string `json:"title"`

0 commit comments

Comments
 (0)