From b54933e4af1f19e13acfd2ebc1887093655a3c7a Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Fri, 15 Sep 2023 13:01:19 -0700 Subject: [PATCH] fixup! Add support for merge request events --- src/event.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/event.rs b/src/event.rs index 4e4d5d3..cd0d3ad 100644 --- a/src/event.rs +++ b/src/event.rs @@ -42,6 +42,12 @@ pub enum MergeRequestAction { Opened, #[serde(rename = "close")] Closed, + #[serde(rename = "reopen")] + Reopened, + #[serde(rename = "approved")] + Approved, + #[serde(rename = "unapproved")] + Unapproved, #[serde(rename = "merge")] Merged, #[serde(other)] @@ -53,6 +59,9 @@ impl MergeRequestAction { match self { MergeRequestAction::Opened => "opened", MergeRequestAction::Closed => "closed", + MergeRequestAction::Reopened => "reopened", + MergeRequestAction::Approved => "approved", + MergeRequestAction::Unapproved => "unapproved", MergeRequestAction::Merged => "merged", MergeRequestAction::Other => "other", }