From 046cd382d7b76f3e737d8274d9047c451b101d25 Mon Sep 17 00:00:00 2001 From: Pedro Lucas Porcellis Date: Sun, 12 Apr 2020 20:10:01 -0300 Subject: [PATCH] Extend license detection to include COPYRIGHT variants Some projects like the Godot Engine and Drupal use a file named COPYRIGHT.txt in their source code. --- gitsrht/blueprints/repo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index 2d9fef1..0543856 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -114,9 +114,12 @@ def summary(owner, repo): "LICENSE.txt", "license.txt", "LICENCE.txt", "licence.txt", "COPYING.txt", "copying.txt", + "COPYRIGHT.txt", "copyright.txt", "LICENSE.md", "license.md", "LICENCE.md", "licence.md", "COPYING.md", "copying.md", + "COPYRIGHT.md", "copyright.md", + "COPYRIGHT", "copyright", "LICENSES", "licenses", "LICENCES", "licences", ]: -- 2.38.4