Skip to content

Commit

Permalink
Copy over labels to the relnote tracking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Sep 13, 2024
1 parent 801fe08 commit 4ff1a9f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/handlers/relnotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,18 @@ cc {} -- origin issue/PR authors and assignees for starting to draft text
&e.issue.repository(),
&title,
&body,
vec!["relnotes".to_owned(), "relnotes-tracking-issue".to_owned()],
["relnotes", "relnotes-tracking-issue"]
.into_iter()
.chain(e.issue.labels.iter().map(|l| &*l.name).filter(|l| {
l.starts_with("A-") // A-* (area)
|| l.starts_with("F-") // F-* (feature)
|| l.starts_with("L-") // L-* (lint)
|| l.starts_with("O-") // O-* (OS)
|| l.starts_with("T-") // T-* (team)
|| l.starts_with("WG-") // WG-* (working group)
}))
.map(ToOwned::to_owned)
.collect::<Vec<_>>(),
)
.await?;
if let Some(milestone) = &e.issue.milestone {
Expand Down

0 comments on commit 4ff1a9f

Please sign in to comment.