Commit e6a05a7b authored by Ben Boeckel's avatar Ben Boeckel
Browse files

webhooks: skip PositionHookAttrs

It's fraught with peril right now for strict parsers, so just skip it
for now.
parent dca8a487
......@@ -471,7 +471,6 @@ pub struct DiffHookAttrs {
}
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(deny_unknown_fields)]
// FIXME: This can apparently be a string sometimes.
// https://gitlab.com/gitlab-org/gitlab-ce/issues/21467
pub struct PositionHookAttrs {
......@@ -495,8 +494,8 @@ pub struct NoteHookAttrs {
pub note: String,
/// The type of entity the note is attached to.
pub noteable_type: NoteType,
pub original_position: Option<PositionHookAttrs>,
pub position: Option<PositionHookAttrs>,
// pub original_position: Option<PositionHookAttrs>,
// pub position: Option<PositionHookAttrs>,
/// The author of the note.
pub author_id: UserId,
/// When the note was created.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment