Skip to content

Commit

Permalink
Merge pull request #1843 from Urgau/relnotes_labels
Browse files Browse the repository at this point in the history
Copy over labels to the relnote tracking issue
  • Loading branch information
Mark-Simulacrum authored Sep 14, 2024
2 parents 801fe08 + 4ff1a9f commit 7735802
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 7735802

Please sign in to comment.