[Blends-commit] [Git][blends-team/website][master] Get projects of Blends team (as sorted list to somehow get reproducibility of…

Andreas Tille gitlab at salsa.debian.org
Mon Mar 12 11:28:58 UTC 2018


Andreas Tille pushed to branch master at Debian Blends Team / website


Commits:
2d24dfe5 by Andreas Tille at 2018-03-12T12:28:08+01:00
Get projects of Blends team (as sorted list to somehow get reproducibility of results for better debugging)

- - - - -


1 changed file:

- misc/machine_readable/fetch-machine-readable_salsa.py


Changes:

=====================================
misc/machine_readable/fetch-machine-readable_salsa.py
=====================================
--- a/misc/machine_readable/fetch-machine-readable_salsa.py
+++ b/misc/machine_readable/fetch-machine-readable_salsa.py
@@ -24,11 +24,11 @@ BLENDSGROUPS=[ 'Debian 3D Printing Team'
 
 def get_blends_groups():
     blends_groups=[]
-    groups = gl.groups.list(all=True)
+    groups = gl.groups.list(all=True, order_by='name', sort='asc')
     for group in groups:
         # print(group.attributes['name'])
         if group.attributes['name'] in BLENDSGROUPS:
-            blends_groups.append(group.attributes)
+            blends_groups.append(group)
     return blends_groups
 
 # SALSA_TOKEN=os.environ['SALSA_TOKEN']
@@ -37,8 +37,10 @@ gl = gitlab.Gitlab("https://salsa.debian.org") # , private_token=SALSA_TOKEN) # 
 
 blends_groups = get_blends_groups()
 for group in blends_groups:
-    print(group['name'], group['id'], group['path'], group['description'], group['full_name'])
-
+    print(group.attributes['name'], group.attributes['id'], group.attributes['path']) # , group.attributes['description'], group.attributes['full_name'])
+    projects = group.projects.list(all=True, order_by='name', sort='asc')
+    for project in projects:
+        print("   ", project.attributes['name'])
 
 #for project in git.getall(git.getprojects):
 #    print(project['name'], project['path_with_namespace'], project['id'])



View it on GitLab: https://salsa.debian.org/blends-team/website/commit/2d24dfe502b94706a996fa79d94c07fc4527e290

---
View it on GitLab: https://salsa.debian.org/blends-team/website/commit/2d24dfe502b94706a996fa79d94c07fc4527e290
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/blends-commit/attachments/20180312/897bec48/attachment-0001.html>


More information about the Blends-commit mailing list