Skip to content

Commit

Permalink
Merge pull request #1878 from ehuss/remove-label-deserialize
Browse files Browse the repository at this point in the history
Handle deleted labels
  • Loading branch information
jackh726 authored Jan 9, 2025
2 parents 4b11759 + 2a9a0ea commit 38b904f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,9 @@ pub enum IssuesAction {
},
Unlabeled {
/// The label removed from the issue
label: Label,
///
/// The `label` is `None` when a label is deleted from the repository.
label: Option<Label>,
},
Locked,
Unlocked,
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/notify_zulip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(super) async fn parse_input(
};

match &event.action {
IssuesAction::Labeled { label } | IssuesAction::Unlabeled { label } => {
IssuesAction::Labeled { label } | IssuesAction::Unlabeled { label: Some(label) } => {
let applied_label = label.clone();
Ok(config
.labels
Expand Down

0 comments on commit 38b904f

Please sign in to comment.