diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 74c14742..beda335c 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -87,7 +87,8 @@ forks: i[:forks_count], created_at: i[:created_at].iso8601, size: i[:size], - open_issues_count: i[:open_issues_count] + open_issues_count: i[:open_issues_count], + description: i[:description] } puts "Found #{i[:full_name].inspect} GitHub repo ##{found.count} \ (#{i[:forks_count]} forks, #{i[:stargazers_count]} stars)" diff --git a/tests/steps/test-discover-repos.sh b/tests/steps/test-discover-repos.sh index 8cd63bb0..c26850fd 100755 --- a/tests/steps/test-discover-repos.sh +++ b/tests/steps/test-discover-repos.sh @@ -37,6 +37,7 @@ tex=${TARGET}/foo.tex test -e "${csv}" test -s "${tex}" test "$(wc -l < "${csv}" | xargs)" = '4' + test "$(head -1 "${csv}" | tr "," "\n" | wc -l | xargs)" = '8' } > "${stdout}" 2>&1 echo "👍🏻 Small repositories discovery test is succeed" @@ -49,5 +50,6 @@ echo "👍🏻 Small repositories discovery test is succeed" test -e "${csv}" test -s "${tex}" test "$(wc -l < "${csv}" | xargs)" = '36' + test "$(head -1 "${csv}" | tr "," "\n" | wc -l | xargs)" = '8' } > "${stdout}" 2>&1 echo "👍🏻 Medium repositories discovery test is succeed"