Skip to content
Snippets Groups Projects
Commit 30554f85 authored by David Hrbáč's avatar David Hrbáč
Browse files

Make sure to get the proper project at upstream

parent e4441ac5
No related branches found
Tags
No related merge requests found
...@@ -2,10 +2,12 @@ require 'faraday' ...@@ -2,10 +2,12 @@ require 'faraday'
require 'json' require 'json'
#print ARGV[0].downcase #print ARGV[0].downcase
puts "Checking the ver for #{ARGV[0]}"
response = Faraday.get "https://release-monitoring.org/api/projects/?pattern=#{ARGV[0].downcase}" 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" response = Faraday.get "https://docs.it4i.cz/devel/52-module-matrix-json-export/modules-matrix.json"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment