File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
api/ruby/find-inactive-members Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,11 @@ def make_active(login)
110
110
def commit_activity ( repository )
111
111
# get all commits after specified date and iterate
112
112
info "...commits"
113
- begin
114
- @client . commits_since ( repo , @date ) . each do |commit |
115
- # if commmitter is a member of the org and not active, make active
116
- if t = @members . find { |member | member [ :login ] == commit [ "author" ] [ "login" ] && member [ :active ] == false }
117
- make_active ( t [ :login ] )
118
- end
113
+ @client . commits_since ( repo , @date ) . each do |commit |
114
+ # if commmitter is a member of the org and not active, make active
115
+ if t = @members . find { |member | member [ :login ] == commit [ "author" ] [ "login" ] && member [ :active ] == false }
116
+ make_active ( t [ :login ] )
119
117
end
120
- rescue
121
- info "...skipping blank repo"
122
118
end
123
119
end
124
120
You can’t perform that action at this time.
0 commit comments