Merge pull request #384 from WilliButz/fix-maintainer-detection

maintainers: compare maintainer usernames in lowercase
This commit is contained in:
Graham Christensen 2019-09-19 07:57:58 -04:00 committed by GitHub
commit f2a893c9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ let
(builtins.map (builtins.map
(pkg: (pkg:
builtins.map (maintainer: { builtins.map (maintainer: {
handle = maintainer.github; handle = pkgs.lib.toLower maintainer.github;
packageName = pkg.name; packageName = pkg.name;
dueToFiles = pkg.filenames; dueToFiles = pkg.filenames;
}) })

View file

@ -12,7 +12,7 @@ pub struct MaintainersByPackage(pub HashMap<Package, HashSet<Maintainer>>);
pub struct Maintainer(String); pub struct Maintainer(String);
impl<'a> From<&'a str> for Maintainer { impl<'a> From<&'a str> for Maintainer {
fn from(name: &'a str) -> Maintainer { fn from(name: &'a str) -> Maintainer {
Maintainer(name.to_owned()) Maintainer(name.to_ascii_lowercase().to_owned())
} }
} }
#[derive(Deserialize, Clone, Debug, Eq, PartialEq, Hash)] #[derive(Deserialize, Clone, Debug, Eq, PartialEq, Hash)]