update touch webhook
This commit is contained in:
parent
39c2166c12
commit
661d1c2c06
|
@ -61,9 +61,10 @@ class TouchWebhookJob < ApplicationJob
|
||||||
|
|
||||||
when 'PullRequestComment'
|
when 'PullRequestComment'
|
||||||
issue_id, sender_id, comment_id = args[0], args[1], args[2]
|
issue_id, sender_id, comment_id = args[0], args[1], args[2]
|
||||||
pull = Issue.find_by_id(issue_id).try(:pull_request)
|
issue = Issue.find_by_id(issue_id)
|
||||||
comment = pull.issue.comment_journals.find_by_id comment_id
|
comment = issue.comment_journals.find_by_id comment_id
|
||||||
sender = User.find_by_id sender_id
|
sender = User.find_by_id sender_id
|
||||||
|
pull = issue.try(:pull_request)
|
||||||
return if pull.nil? || sender.nil? || comment.nil?
|
return if pull.nil? || sender.nil? || comment.nil?
|
||||||
|
|
||||||
pull.project.webhooks.each do |webhook|
|
pull.project.webhooks.each do |webhook|
|
||||||
|
|
Loading…
Reference in New Issue