[llvm] workflows: Add a job for auditing release assets (PR #92829)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 16:28:42 PDT 2024


================
@@ -0,0 +1,40 @@
+import github
+import sys
+
+token = sys.argv[1]
+
+gh = github.Github(login_or_token=token)
+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]'
+])
+
+for release in repo.get_releases():
----------------
boomanaiden154 wrote:

I don't know about a standard python convention, but it's pretty common and a recommended practice from what I've seen. The Google style guide at least recommends it, citing that tooling like pydoc and testing frameworks need everything to be importable.

https://github.com/llvm/llvm-project/pull/92829


More information about the llvm-commits mailing list