Skip to content

Commit

Permalink
Handle deleted labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 7, 2025
1 parent 4b11759 commit 2a9a0ea
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 2a9a0ea

Please sign in to comment.