33
34
35
36
37
38
39
40
41
|
# File 'lib/gerrit_api.rb', line 33
def self.all_code_changes
wrap_with_authentication do
get("/changes/?S=0&q=is%3Aopen%20owner%3Aself%20-is%3Awip%20-is%3Aignored%20limit%3A25&q=is%3Aopen%20owner%3Aself%20is%3Awip%20limit%3A25&q=is%3Aopen%20-owner%3Aself%20-is%3Awip%20-is%3Aignored%20reviewer%3Aself%20limit%3A25&q=is%3Aclosed%20-is%3Aignored%20%28-is%3Awip%20OR%20owner%3Aself%29%20%28owner%3Aself%20OR%20reviewer%3Aself%29%20-age%3A4w%20limit%3A10&o=DETAILED_ACCOUNTS&o=MESSAGES", {
headers: {
"Cookie" => "GerritAccount=#{api_token};"
}
})
end.parsed_response.flat_map { |js| js.map { |j| code_change_from_json(j) } }
end
|