Skip to content

Commit

Permalink
changelog gen compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Nov 24, 2022
1 parent c3e38aa commit 76eb791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/changelog/src/create_log_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ pub fn create_log_line(
.with_context(|| format!("Could not find GitHub labels for issue: {}", issue_id))?;

let is_issue_for_this_package = issue_labels
.into_iter()
.iter()
.any(|label| package_labels.contains(&label.as_str()));

if !is_issue_for_this_package {
println!("Issue {issue_id} is not for {package_labels:?} packages");
let leftovers = issue_labels.iter().filter(|label| {
!(label.starts_with("A-") || label == "documentation" || label == "meta")
!(label.starts_with("A-") || *label == "documentation" || *label == "meta")
});
let count = leftovers.count();
if count > 0 {
Expand Down

0 comments on commit 76eb791

Please sign in to comment.