Commit 30554f85 authored by David Hrbáč's avatar David Hrbáč

Make sure to get the proper project at upstream

parent e4441ac5
......@@ -2,10 +2,12 @@ require 'faraday'
require 'json'
#print ARGV[0].downcase
puts "Checking the ver for #{ARGV[0]}"
response = Faraday.get "https://release-monitoring.org/api/projects/?pattern=#{ARGV[0].downcase}"
fedora = JSON.parse( response.body )['projects'][0]['version']
fedora_j = JSON.parse( response.body )['projects']
fedora = fedora_j.select { |h| h['name'] == ARGV[0].downcase }.first['version']
response = Faraday.get "https://docs.it4i.cz/devel/52-module-matrix-json-export/modules-matrix.json"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment