File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
team-mapping-gitlab-gitguardian Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,10 @@ def add_member_to_team(
264
264
Add a member to the team
265
265
"""
266
266
267
+ if member .access_level in (AccessLevel .OWNER , AccessLevel .MANAGER ):
268
+ is_team_leader = True
269
+ incident_permission = IncidentPermission .FULL_ACCESS
270
+
267
271
payload = CreateTeamMember (
268
272
member_id = member .id ,
269
273
is_team_leader = is_team_leader ,
Original file line number Diff line number Diff line change @@ -325,7 +325,6 @@ def synchronize_team_members(
325
325
invitation_by_id [team_invitation .invitation_id ].email ,
326
326
)
327
327
328
- team_id = gg_team .id
329
328
for member in members_to_add :
330
329
# If the member exists in GitGuardian, we can add him to the team
331
330
if member in members_by_emails :
@@ -351,7 +350,7 @@ def synchronize_team_members(
351
350
None ,
352
351
)
353
352
if team_member_id :
354
- remove_team_member (team_id , team_member_id )
353
+ remove_team_member (gg_team , team_member_id )
355
354
356
355
357
356
def infer_gitlab_email (
You can’t perform that action at this time.
0 commit comments