[sysadmin-bin] Trust users who submitted/discussed/reviewed a MR to GNOME projects
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Trust users who submitted/discussed/reviewed a MR to GNOME projects
- Date: Tue, 18 Aug 2020 06:46:41 +0000 (UTC)
commit 7b113f4e68a577a8817fe8d81bc30fe74916ba3c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Aug 18 08:45:42 2020 +0200
Trust users who submitted/discussed/reviewed a MR to GNOME projects
gitlab/inactive-gitlab-users.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/gitlab/inactive-gitlab-users.py b/gitlab/inactive-gitlab-users.py
index cd723ee..8c94cc7 100755
--- a/gitlab/inactive-gitlab-users.py
+++ b/gitlab/inactive-gitlab-users.py
@@ -111,6 +111,16 @@ def get_inactive_users(gl, timedelta_unit, timedelta_value):
userdata["reason"] = "inactivity"
results.append(userdata)
continue
+ else:
+ for event in events:
+ print(event.project_id)
+ if event.target_type in ('DiffNote', 'MergeRequest', 'DiscussionNote'):
+ print(event.target_type)
+ project_id = event.project_id
+ project = gl.projects.get(project_id).path_with_namespace
+ if 'GNOME' in project.split('/'):
+ user.customattributes.set("trusted", "true")
+ break
if attrs["bio"] and len(attrs["bio"]) > 0:
# Some users set URL in bio, check it against surbl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]