Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report a bit more information on unsupported github events #299

Merged
merged 1 commit into from
Jul 15, 2024
Merged
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: 2 additions & 2 deletions bot-components/GitHub_subscriptions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ let github_action ~event ~action json =
| "check_suite", "requested" ->
Ok (CheckSuiteRequested (check_suite_info_of_json json))
| _ ->
Ok (UnsupportedEvent "Unsupported GitHub action.")
Ok (UnsupportedEvent (f "Unsupported GitHub action %s / %s." event action))

let github_event ~event json =
match event with
Expand All @@ -225,7 +225,7 @@ let github_event ~event json =
| ref_type ->
Error (f "Unexpected ref_type: %s" ref_type) )
| _ ->
Ok (UnsupportedEvent "Unsupported GitHub event.")
Ok (UnsupportedEvent (f "Unsupported GitHub event %s." event))

let receive_github ~secret headers body =
let open Result in
Expand Down