File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ const (
48
48
ActionUnpublish
49
49
ActionPrerelease
50
50
ActionRelease
51
+ ActionSubmitted
52
+ ActionDismissed
51
53
)
52
54
53
55
// String returns the string representation of Action.
@@ -83,6 +85,12 @@ func (a Action) String() (s string) {
83
85
return "released"
84
86
case ActionReviewReady :
85
87
return "review_ready"
88
+ case ActionSubmitted :
89
+ return "submitted"
90
+ case ActionEdit :
91
+ return "edited"
92
+ case ActionDismissed :
93
+ return "dismissed"
86
94
default :
87
95
return
88
96
}
@@ -132,6 +140,10 @@ func (a *Action) UnmarshalJSON(data []byte) error {
132
140
* a = ActionRelease
133
141
case "review_ready" :
134
142
* a = ActionReviewReady
143
+ case "submitted" :
144
+ * a = ActionSubmitted
145
+ case "dismissed" :
146
+ * a = ActionDismissed
135
147
}
136
148
return nil
137
149
}
Original file line number Diff line number Diff line change @@ -91,13 +91,6 @@ type (
91
91
Sender User
92
92
}
93
93
94
- PullRequestReviewHook struct {
95
- Action Action
96
- Repo Repository
97
- PullRequest PullRequest
98
- Sender User
99
- }
100
-
101
94
// PullRequestCommentHook represents an pull request
102
95
// comment event, eg pull_request_comment.
103
96
PullRequestCommentHook struct {
@@ -167,4 +160,3 @@ func (h *PullRequestCommentHook) Repository() Repository { return h.Repo }
167
160
func (h * ReviewCommentHook ) Repository () Repository { return h .Repo }
168
161
func (h * ReleaseHook ) Repository () Repository { return h .Repo }
169
162
func (h * PipelineHook ) Repository () Repository { return h .Repo }
170
- func (h * PullRequestReviewHook ) Repository () Repository { return h .Repo }
You can’t perform that action at this time.
0 commit comments