[sysadmin-bin] Land reporter access to all GNOME devs against the Teams/Translations group



commit cd83d25d770309efde04623791d8c0f45a844881
Author: Andrea Veri <averi redhat com>
Date:   Wed Mar 20 22:19:49 2019 +0100

    Land reporter access to all GNOME devs against the Teams/Translations group

 gitlab/gitlab-operations.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index 7a7da44..a03e49b 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -24,6 +24,7 @@ ldapusers_dict = {}
 gnomecvs_members = glu.get_uids_from_group('gnomecvs')
 group = gl.groups.get(8, with_projects=False)
 gnomeusers = group.members.list(all=True)
+l10n_group = gl.groups.get(13336, with_projects=False)
 gnomeusers_dict = {}
 projects = group.projects.list(all=True)
 
@@ -61,7 +62,10 @@ for username, id in ldapusers_dict.iteritems():
                 group.members.create({'user_id': id,
                                       'access_level': gitlab.DEVELOPER_ACCESS})
 
-                print 'Username with id %i has been added to the GNOME group' % id
+                l10n_group.members.create({'user_id': id,
+                                           'access_level': gitlab.REPORTER_ACCESS})
+
+                print 'Username %s with id %i has been added to the GNOME group' % (username, id)
         except gitlab.exceptions.GitlabCreateError as e:
             if e.response_code == 409:
                 pass


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]