Skip to content

Commit ae3fff0

Browse files
authored
Add ParentIssueURL field to Issue struct (#3841)
1 parent ea7dd81 commit ae3fff0

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

github/github-accessors.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/issues.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type Issue struct {
5454
EventsURL *string `json:"events_url,omitempty"`
5555
LabelsURL *string `json:"labels_url,omitempty"`
5656
RepositoryURL *string `json:"repository_url,omitempty"`
57+
ParentIssueURL *string `json:"parent_issue_url,omitempty"`
5758
Milestone *Milestone `json:"milestone,omitempty"`
5859
PullRequestLinks *PullRequestLinks `json:"pull_request,omitempty"`
5960
Repository *Repository `json:"repository,omitempty"`

github/issues_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ func TestIssue_Marshal(t *testing.T) {
586586
EventsURL: Ptr("eurl"),
587587
LabelsURL: Ptr("lurl"),
588588
RepositoryURL: Ptr("rurl"),
589+
ParentIssueURL: Ptr("piurl"),
589590
Milestone: &Milestone{ID: Ptr(int64(1))},
590591
PullRequestLinks: &PullRequestLinks{URL: Ptr("url")},
591592
Repository: &Repository{ID: Ptr(int64(1))},
@@ -629,6 +630,7 @@ func TestIssue_Marshal(t *testing.T) {
629630
"events_url": "eurl",
630631
"labels_url": "lurl",
631632
"repository_url": "rurl",
633+
"parent_issue_url": "piurl",
632634
"milestone": {
633635
"id": 1
634636
},

0 commit comments

Comments
 (0)