[sysadmin-bin] Same logic as 066a91054
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Same logic as 066a91054
- Date: Fri, 29 Oct 2021 08:19:34 +0000 (UTC)
commit 3fba68dfb774098404691b6e769f94e4d948ddb4
Author: Andrea Veri <averi redhat com>
Date: Fri Oct 29 10:17:22 2021 +0200
Same logic as 066a91054
gitlab/gitlab-operations.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index f66af07..39e5013 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -182,6 +182,7 @@ for project in maints:
elif _member.attributes['access_level'] == 20:
pass
else:
- proj.members.delete(members_dict[member])
+ if not _member.attributes['username'].startswith(f"project_{ proj.attributes['id'] }_bot"):
+ proj.members.delete(members_dict[member])
- print(f"Dropped level access { _member.attributes['access_level'] }, this means user {
member } was added manually on project { project }, that is not necessary as permissions are inherited from
the GNOME group by default")
+ print(f"Dropped level access { _member.attributes['access_level'] }, this means user {
member } was added manually on project { project }, that is not necessary as permissions are inherited from
the GNOME group by default")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]