Commit 0f01bf01 authored by Markus Frosch's avatar Markus Frosch
Browse files

push_github_issues: Blocking creation of comments with a exception for new

parent 13d94cee
......@@ -207,6 +207,9 @@ issues.each do |v|
end if comments_existing.key?(existing.number)
unless found
# TODO: this should not happen, throwing an exception for now!
raise Exception, "Want to create comment, WHY? - #{existing.inspect}"
data = { body: c[:body] }
ec = github.issues.comments.create data.merge(number: existing.number)
logger.info "Created comment #{ec.id} on issue #{existing.number} - #{ec.html_url} - #{data.inspect}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment