massrebuilder: add darwin label for titles including macOS

This commit is contained in:
Daiderd Jordan 2018-07-14 17:26:41 +02:00
parent b21c87bdd1
commit d311591769
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -62,7 +62,10 @@ impl<E: stats::SysEvents> MassRebuildWorker<E> {
fn tag_from_title(&self, issue: &hubcaps::issues::IssueRef) {
let darwin = issue.get()
.map(|iss| iss.title.to_lowercase().contains("darwin"))
.map(|iss| {
iss.title.to_lowercase().contains("darwin") ||
iss.title.to_lowercase().contains("macos")
})
.unwrap_or(false);
if darwin {