Skip to content
Snippets Groups Projects

batches: don't panic on unexpected GitHub PR action

Merged Administrator requested to merge aharvey/dont-panic-payload-edition into main

Created by: LawnGnome

When converting a raw payload to changeset event kind, we need to be able to handle payloads of unexpected types, especially nil, since we don't control the inputs that come in via webhooks.

The specific case that triggered this was a GitHub pull request event that had an unknown action: this results in a nil event keyer being returned, and that caused a panic in ChangesetEventKindFor().

Merge request reports

Merged by avatar (Jul 6, 2025 2:12am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading