+
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
4 changes: 3 additions & 1 deletion github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,10 @@ type MergeGroup struct {
//
// GitHub API docs: https://docs.github.com/developers/webhooks-and-events/webhook-events-and-payloads#merge_group
type MergeGroupEvent struct {
// The action that was performed. Currently, can only be checks_requested.
// The action that was performed. Possible values are: "checks_requested", "destroyed".
Action *string `json:"action,omitempty"`
// Reason is populated when the action is "destroyed". Possible values: "merged", "invalidated", "dequeued".
Reason *string `json:"reason,omitempty"`
// The merge group.
MergeGroup *MergeGroup `json:"merge_group,omitempty"`

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 @@ -10746,6 +10746,7 @@ func TestMergeGroupEvent_Marshal(t *testing.T) {

u := &MergeGroupEvent{
Action: Ptr("a"),
Reason: Ptr("r"),
MergeGroup: &MergeGroup{
HeadSHA: Ptr("hs"),
HeadRef: Ptr("hr"),
Expand Down Expand Up @@ -10886,6 +10887,7 @@ func TestMergeGroupEvent_Marshal(t *testing.T) {

want := `{
"action": "a",
"reason": "r",
"merge_group": {
"head_sha": "hs",
"head_ref": "hr",
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载