File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def update_repository_info repo
5050 def update_collaborators ( repo_collaborators )
5151 existing_collaborators = collaborators
5252
53- repo_logins = repo_collaborators . map ( & :login )
53+ repo_logins = repo_collaborators
5454 existing_logins = existing_collaborators . map ( &:login )
5555
5656 existing_collaborators . each do |existing_collaborator |
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ def find_project project_name
6666 end
6767
6868 def collaborators_info project
69- ( client . get ( "/repos/#{ project . full_name } /collaborators" ) rescue [ ] ) +
70- ( client . get ( "/orgs/#{ project . full_name . split ( '/' ) . first } /members" ) rescue [ ] )
69+ ( client . get ( "/repos/#{ project . full_name } /collaborators" ) . map ( & :login ) rescue [ project . full_name . split ( '/' ) . first ] ) +
70+ ( client . get ( "/orgs/#{ project . full_name . split ( '/' ) . first } /members" ) . map ( & :login ) rescue [ ] )
7171 end
7272
7373 def branches project
You can’t perform that action at this time.
0 commit comments