From bda32fe3cef4277b5eb7c8ace9645b76775015a3 Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 19 Jul 2022 01:50:52 -0700 Subject: [PATCH] Add archives dates --- tests/check-github-commit-dates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/check-github-commit-dates.py b/tests/check-github-commit-dates.py index 4070700a..edb3d2d2 100755 --- a/tests/check-github-commit-dates.py +++ b/tests/check-github-commit-dates.py @@ -40,7 +40,7 @@ __status__ = "Production" access_token = os.environ['GITHUB_TOKEN'] """ find all URLs of the form https://github.com/owner/repo """ -with open('README.md', 'r') as readme: +with open('README.md', encoding="utf8") as readme: data = readme.read() project_urls = re.findall('https://github.com/[A-z]*/[A-z|0-9|\-|_|\.]+', data) @@ -57,4 +57,5 @@ g = Github(access_token) for url in urls: project = re.sub('https://github.com/', '', url) repo = g.get_repo(project) - print(str(repo.pushed_at) + ' https://github.com/' + project) + + print(str(repo.pushed_at) + ' https://github.com/' + project + ' archived:' + str((repo.archived)))