fixup! Add support for merge request events

This commit is contained in:
Brian Tarricone 2023-09-15 13:01:19 -07:00
parent 2c6afec308
commit b54933e4af

View File

@ -42,6 +42,12 @@ pub enum MergeRequestAction {
Opened, Opened,
#[serde(rename = "close")] #[serde(rename = "close")]
Closed, Closed,
#[serde(rename = "reopen")]
Reopened,
#[serde(rename = "approved")]
Approved,
#[serde(rename = "unapproved")]
Unapproved,
#[serde(rename = "merge")] #[serde(rename = "merge")]
Merged, Merged,
#[serde(other)] #[serde(other)]
@ -53,6 +59,9 @@ impl MergeRequestAction {
match self { match self {
MergeRequestAction::Opened => "opened", MergeRequestAction::Opened => "opened",
MergeRequestAction::Closed => "closed", MergeRequestAction::Closed => "closed",
MergeRequestAction::Reopened => "reopened",
MergeRequestAction::Approved => "approved",
MergeRequestAction::Unapproved => "unapproved",
MergeRequestAction::Merged => "merged", MergeRequestAction::Merged => "merged",
MergeRequestAction::Other => "other", MergeRequestAction::Other => "other",
} }