Created
May 23, 2025 12:06
-
-
Save juliusknorr/81d0388669aff98582fbf8e780299e0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from github import Github | |
from datetime import datetime, timedelta | |
date = datetime.today() - timedelta(days=1) | |
g = Github("juliusknorr", "TOKEN") | |
def org_report(org): | |
query = "org:%s type:pr is:merged base:master updated:>=%s" % (org, date.strftime("%Y-%m-%d")) | |
prs = g.search_issues(query, sort="updated", order="desc") | |
ignored_authors = [ | |
'nextcloud-android-bot', | |
'nextcloud-command', | |
'backportbot[bot]', | |
'dependabot[bot]', | |
'dependabot-preview[bot]', | |
'renovate[bot]', | |
'transifex-integration[bot]' | |
] | |
mapping = {} | |
for pr in prs: | |
if pr.user.login not in ignored_authors: | |
if pr.repository.name not in mapping: | |
mapping[pr.repository.name] = [] | |
mapping[pr.repository.name].append(pr) | |
for repo in mapping: | |
print("[%s]" % repo) | |
for pr in mapping[repo]: | |
prdate = pr.updated_at | |
print(" - %s %s %s" % (pr.title, pr.html_url, pr.user.login)) | |
print("") | |
org_report("collaboraonline") | |
org_report("nextcloud") | |
org_report("nextcloud-libraries") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment