Skip to content

Commit 2a9a0ea

Browse files
committed
Handle deleted labels
1 parent 4b11759 commit 2a9a0ea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/github.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,9 @@ pub enum IssuesAction {
11681168
},
11691169
Unlabeled {
11701170
/// The label removed from the issue
1171-
label: Label,
1171+
///
1172+
/// The `label` is `None` when a label is deleted from the repository.
1173+
label: Option<Label>,
11721174
},
11731175
Locked,
11741176
Unlocked,

Diff for: src/handlers/notify_zulip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(super) async fn parse_input(
3232
};
3333

3434
match &event.action {
35-
IssuesAction::Labeled { label } | IssuesAction::Unlabeled { label } => {
35+
IssuesAction::Labeled { label } | IssuesAction::Unlabeled { label: Some(label) } => {
3636
let applied_label = label.clone();
3737
Ok(config
3838
.labels

0 commit comments

Comments
 (0)