Skip to content

Instantly share code, notes, and snippets.

@i386
Created July 26, 2016 00:31
Show Gist options
  • Save i386/82573c588b6ff03766bc1c8ce8c000ef to your computer and use it in GitHub Desktop.
Save i386/82573c588b6ff03766bc1c8ce8c000ef to your computer and use it in GitHub Desktop.
Converts a JIRA query RSS feed to asciidoc suitable for release notes
require 'rss'
require 'open-uri'
url = 'https://issues.jenkins-ci.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=component+%3D+blueocean-plugin+AND+resolution+%3D+Fixed+AND+resolved+>%3D+2016-07-15+AND+resolved+<%3D+2016-07-22&tempMax=1000'
open(url) do |rss|
feed = RSS::Parser.parse(rss)
feed.items.each do |item|
puts "* #{item.link}#{item.title}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment