Skip to content

Commit aa68ceb

Browse files
Merge pull request #1649 from Mark-Simulacrum/pr-comment
Fix PR comment deserialization
2 parents 6d1a55b + 4dcdaa4 commit aa68ceb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/github.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ pub struct Issue {
264264
/// Note that this field does not come from GitHub. This is manually added
265265
/// when the webhook arrives to help differentiate between an event
266266
/// related to an issue versus a pull request.
267-
#[serde(default)]
267+
///
268+
/// GitHub *does* actually populate this field on some events, but triagebot ignores that data
269+
/// and just stores a bool here when appropriate.
270+
#[serde(skip)]
268271
pub pull_request: bool,
269272
/// Whether or not the pull request was merged.
270273
#[serde(default)]

0 commit comments

Comments
 (0)