watson-ruby
watson-ruby copied to clipboard
Play with idea of making body of GitHub issue hash format to be exec'd [lib/watson/bitbucket.rb]
filename : lib/watson/bitbucket.rb line # : 282 tag : todo md5 : 31546491cd844675df481310dc1571ba
# [todo] - Play with idea of making body of GitHub issue hash format to be exec'd
# Store pieces in text as :md5 => "whatever" so when we get issues we can
# call exec and turn it into a real hash for parsing in watson
# Makes watson code cleaner but not as readable comment on GitHub...?
debug_print "Checking open issues to see if already posted\n"
config.bitbucket_issues[:open].each do | _open |
if _open["content"].include?(issue[:md5])
debug_print "Found in #{ _open["title"] }, not posting\n"
return false
end
debug_print "Did not find in #{_open["title"]}\n"
end
debug_print "Checking closed issues to see if already posted\n"
config.bitbucket_issues[:closed].each do | _closed |
if _closed["content"].include?(issue[:md5])
debug_print "Found in #{ _closed["title"] }, not posting\n"