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
No related tags found
5 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!119Resolve "Module matrix - json export"
Pipeline #
This commit is part of merge request !119. Comments created here will be created in the context of that merge request.
...@@ -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 register or to comment