Merge pull request #197 from LnL7/tag-macos

massrebuilder: add darwin label for titles including macOS
This commit is contained in:
Graham Christensen 2018-07-14 17:27:51 -04:00 committed by GitHub
commit a1d1f1209f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {