remove pesky newline

This commit is contained in:
chair28980 2023-09-30 03:04:58 -07:00
parent 2aecfc9d91
commit 7a5eae6bee
1 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,12 @@ def query_repo
milestones.each do |milestone| milestones.each do |milestone|
puts "Milestone: #{milestone.title}" puts "Milestone: #{milestone.title}"
puts "Link: #{milestone.html_url}" puts "Link: #{milestone.html_url}"
if milestone.due_on
due_date = milestone.due_on.strftime('%Y-%m-%d')
puts "Due by: #{due_date}"
else
puts "No due date set."
end
puts "----------------------------" puts "----------------------------"
issues = client.list_issues(repo, milestone: milestone.number) issues = client.list_issues(repo, milestone: milestone.number)
@ -32,7 +38,6 @@ def query_repo
end end
puts "----------------------------" puts "----------------------------"
end end
puts "\n"
end end
rescue Octokit::InvalidRepository => e rescue Octokit::InvalidRepository => e