rust-lang / triagebot

Automation/tooling for Rust spaces
https://triage.rust-lang.org
Apache License 2.0
170 stars 74 forks source link

Fix PR comment deserialization #1649

Closed Mark-Simulacrum closed 1 year ago

Mark-Simulacrum commented 1 year ago

Broke in https://github.com/rust-lang/triagebot/pull/1646.

request failed: WebhookError(IssueCommentEvent failed to deserialize

Caused by:
    0: at Path { segments: [Map { key: "issue" }, Map { key: "pull_request" }] }
    1: invalid type: map, expected a boolean at line 1 column 6086)
ehuss commented 1 year ago

Apologies! In hindsight that was an obvious mistake and I should have reviewed the API more closely. Thanks for the fix!