diff options
author | Kieran <32241933+KieranRobson@users.noreply.github.com> | 2022-07-25 15:05:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 15:05:25 +0000 |
commit | 5d9f553463be6b1ace11a6436ed57a94abf5efe6 (patch) | |
tree | 9a99352677f2590da5e82fd6e7d7e2fbecd7833a | |
parent | Added Web Portal (#3098) (diff) | |
download | awesome-selfhosted-5d9f553463be6b1ace11a6436ed57a94abf5efe6.tar.gz awesome-selfhosted-5d9f553463be6b1ace11a6436ed57a94abf5efe6.zip |
Edit checkgithubdates to add archived status (#3145)
-rwxr-xr-x | tests/check-github-commit-dates.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check-github-commit-dates.py b/tests/check-github-commit-dates.py index 4070700a..2beb4c8c 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,4 @@ 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))) |