Skip to content

Instantly share code, notes, and snippets.

@fblundun
Last active August 29, 2015 14:25
Show Gist options
  • Save fblundun/e68d1b380b830c0cd5b2 to your computer and use it in GitHub Desktop.
Save fblundun/e68d1b380b830c0cd5b2 to your computer and use it in GitHub Desktop.
List Github issues not addressed in a branch
require 'octokit'
page = 1
issues = []
while true do
current_page = Octokit.list_issues('snowplow/snowplow', {milestone: 78, state: 'open',page: page}).map {|x| x.to_hash()};
if current_page.empty?
break
end
issues += current_page
page += 1
end
log = `git log --oneline master..HEAD`
issues.each do |x|
puts "#{x[:url]} #{x[:title]}" unless log.include?("##{x[:number]}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment