Skip to content

Commit

Permalink
add users to bucketlist and operations repo
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithpabbati committed Mar 28, 2021
1 parent ce49cba commit b0e9900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/platforms/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def addUser(self):
group = gl.groups.get('amfoss')
userID = gl.users.list(username=self.username)[0].id
group.members.create({'user_id': userID, 'access_level': gitlab.REPORTER_ACCESS})
projectIDs = [20528933, 21712951]
for projectID in projectIDs:
project = gl.projects.get(projectID)
project.members.create({'user_id': userID, 'access_level': gitlab.DEVELOPER_ACCESS})

def checkIfUserExists(self):
GITLAB_TOKEN = Token.objects.values().get(key='GITLAB_TOKEN')['value']
Expand Down

0 comments on commit b0e9900

Please sign in to comment.