[sysadmin-bin] Allow helper role the same access as maintainer (https://gitlab.gnome.org/Infrastructure/GitLab/-/is
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Allow helper role the same access as maintainer (https://gitlab.gnome.org/Infrastructure/GitLab/-/is
- Date: Thu, 16 Sep 2021 14:40:48 +0000 (UTC)
commit ce78a1d8cf8ae5a1a8722d431dcd7037bf7fcdd2
Author: Andrea Veri <averi redhat com>
Date: Thu Sep 16 16:40:34 2021 +0200
Allow helper role the same access as maintainer
(https://gitlab.gnome.org/Infrastructure/GitLab/-/issues/528)
gitlab/gitlab-operations.py | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index ddd87c1..644ea43 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -115,18 +115,19 @@ for project in gnome_projects:
if node.name != (DOAP, "Project"):
continue
- for maint in node.find_properties((DOAP, u'maintainer')):
- if not isinstance(maint, semi_rdf.Node):
- continue
+ for role in [u'maintainer', u'helper']:
+ for maint in node.find_properties((DOAP, role)):
+ if not isinstance(maint, semi_rdf.Node):
+ continue
- uid = maint.find_property((GNOME, u'userid'))
- if not isinstance(uid, str):
- continue
+ uid = maint.find_property((GNOME, u'userid'))
+ if not isinstance(uid, str):
+ continue
- uid = str(uid)
- uids.append(uid)
+ uid = str(uid)
+ uids.append(uid)
- maints[project_name] = uids
+ maints[project_name] = uids
for project in maints:
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]