Last active
August 29, 2015 14:25
-
-
Save fblundun/e68d1b380b830c0cd5b2 to your computer and use it in GitHub Desktop.
List Github issues not addressed in a branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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