From e3cf55f6826ea7e703eea307e571b8c9b12c0a2e Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:25:58 +0200 Subject: [PATCH] enhance(play): create flag with "needs triage" label (#568) --- src/api/play.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/play.rs b/src/api/play.rs index 0befbe78..3bdaf49f 100644 --- a/src/api/play.rs +++ b/src/api/play.rs @@ -140,7 +140,9 @@ pub async fn create_flag_issue( .map(|p| p.flag_repo.as_str()) .ok_or(PlaygroundError::SettingsError)?; let issues = client.issues("mdn", repo); - let mut issue = issues.create(format!("flag-{gist_id}")); + let mut issue = issues + .create(format!("flag-{gist_id}")) + .labels(Some(vec![String::from("needs triage")])); if let Some(reason) = reason { issue = issue.body(&format!( "url: {}/en-US/play?id={}\n{reason}",