Skip to content

Commit

Permalink
Fix python formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed May 20, 2024
1 parent ab0cea7 commit f3ad45a
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions .github/workflows/release-asset-audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,41 @@
token = sys.argv[1]

gh = github.Github(login_or_token=token)
repo = gh.get_repo('llvm/llvm-project')
repo = gh.get_repo("llvm/llvm-project")

uploaders = set([
'DimitryAndric',
'stefanp-ibm',
'lei137',
'omjavaid',
'nicolerabjohn',
'amy-kwan',
'mandlebug',
'zmodem',
'androm3da',
'tru',
'rovka',
'rorth',
'quinnlp',
'kamaub',
'abrisco',
'jakeegan',
'maryammo',
'tstellar',
'github-actions[bot]'
])
uploaders = set(
[
"DimitryAndric",
"stefanp-ibm",
"lei137",
"omjavaid",
"nicolerabjohn",
"amy-kwan",
"mandlebug",
"zmodem",
"androm3da",
"tru",
"rovka",
"rorth",
"quinnlp",
"kamaub",
"abrisco",
"jakeegan",
"maryammo",
"tstellar",
"github-actions[bot]"
]
)

for release in repo.get_releases():
print("Release:", release.title)
for asset in release.get_assets():
created_at = asset.created_at
updated_at = "" if asset.created_at == asset.updated_at else asset.updated_at
print(f'{asset.name} : {asset.uploader.login} [{created_at} {updated_at}] ( {asset.download_count} )')
print(
f"{asset.name} : {asset.uploader.login} [{created_at} {updated_at}] ( {asset.download_count} )"
)
if asset.uploader.login not in uploaders:
print("Invalid uploader")
sys.exit(1)
print("Invalid uploader")
sys.exit(1)

0 comments on commit f3ad45a

Please sign in to comment.