We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffcf40d + f665df6 commit de42354Copy full SHA for de42354
src/handlers/relabel.rs
@@ -10,6 +10,7 @@
10
11
use crate::{
12
config::RelabelConfig,
13
+ github::UnknownLabels,
14
github::{self, Event, GithubClient},
15
handlers::Context,
16
interactions::ErrorComment,
@@ -71,6 +72,14 @@ pub(super) async fn handle_command(
71
72
event.issue().unwrap().global_id(),
73
e
74
);
75
+ if let Some(err @ UnknownLabels { .. }) = e.downcast_ref() {
76
+ event
77
+ .issue()
78
+ .unwrap()
79
+ .post_comment(&ctx.github, &err.to_string())
80
+ .await?;
81
+ }
82
+
83
return Err(e);
84
}
85
0 commit comments