#!/usr/bin/env ruby # # Created by Ben Shine on 2007-09-10. # Copyright (c) 2007 Laszlo Systems. Use according to license terms. def format_as_bug bugid bug_title = find_bug_title bugid "
  • LPP-#{bugid}: #{bug_title}" + "" end def find_bug_title bugid jira_output = File.read("jira-relnotes.txt"); title_lines = jira_output.select { |line| line =~ /#{bugid}/ } if title_lines.first =~ /\] - (.*)$/ then $1 else "unknown" end end buggies = [4543, 4546, 4654, 1000, 3815] buggies.each { |b| puts(format_as_bug(b)) }