watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Play with idea of making body of GitHub issue hash format to be exec'd [lib/watson/github.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/github.rb line # : 305 tag : todo md5 : 058efc21b19d23a6ab249fdee3aba8da

# [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.github_issues[:open].each do | _open | 
    if _open["body"].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.github_issues[:closed].each do  | _closed | 
    if _closed["body"].include?(issue[:md5])

nhmood avatar Nov 21 '13 16:11 nhmood