Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@ type PullRequestEvent struct {
Repo *Repository `json:"repository,omitempty"`
Sender *User `json:"sender,omitempty"`
Installation *Installation `json:"installation,omitempty"`
Label *Label `json:"label,omitempty"` // Populated in "labeled" event deliveries.
Label *Label `json:"label,omitempty"` // Populated in "labeled" event deliveries.
Reason *string `json:"reason,omitempty"` // Populated in "dequeued" event deliveries.

// The following field is only present when the webhook is triggered on
// a repository belonging to an organization.
Expand Down
2 changes: 2 additions & 0 deletions github/event_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16079,6 +16079,7 @@ func TestPullRequestEvent_Marshal(t *testing.T) {
},
RequestedTeam: &Team{ID: Ptr(int64(1))},
Label: &Label{ID: Ptr(int64(1))},
Reason: Ptr("CI_FAILURE"),
Before: Ptr("before"),
After: Ptr("after"),
Repo: &Repository{
Expand Down Expand Up @@ -16268,6 +16269,7 @@ func TestPullRequestEvent_Marshal(t *testing.T) {
"label": {
"id": 1
},
"reason": "CI_FAILURE",
"before": "before",
"after": "after",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading