Skip to content

Commit 3f7dd98

Browse files
committed
Report a bit more information on unsupported github events
This will make it easier to add more events in the future.
1 parent 1122573 commit 3f7dd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot-components/GitHub_subscriptions.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ let github_action ~event ~action json =
198198
| "check_suite", "requested" ->
199199
Ok (CheckSuiteRequested (check_suite_info_of_json json))
200200
| _ ->
201-
Ok (UnsupportedEvent "Unsupported GitHub action.")
201+
Ok (UnsupportedEvent (f "Unsupported GitHub action %s / %s." event action))
202202

203203
let github_event ~event json =
204204
match event with
@@ -225,7 +225,7 @@ let github_event ~event json =
225225
| ref_type ->
226226
Error (f "Unexpected ref_type: %s" ref_type) )
227227
| _ ->
228-
Ok (UnsupportedEvent "Unsupported GitHub event.")
228+
Ok (UnsupportedEvent (f "Unsupported GitHub event %s." event))
229229

230230
let receive_github ~secret headers body =
231231
let open Result in

0 commit comments

Comments
 (0)