mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
fixed job中issue不存在处理
This commit is contained in:
@@ -64,9 +64,9 @@ class TouchWebhookJob < ApplicationJob
|
||||
issue_id, sender_id, comment_id, action_type, comment_json = args[0], args[1], args[2], args[3], args[4]
|
||||
issue = Issue.find_by_id(issue_id)
|
||||
sender = User.find_by_id sender_id
|
||||
return if pull.nil? || sender.nil?
|
||||
comment = issue.comment_journals.find_by_id comment_id
|
||||
pull = issue.try(:pull_request)
|
||||
return if issue.nil? || pull.nil? || sender.nil?
|
||||
comment = issue.comment_journals.find_by_id comment_id
|
||||
return if action_type == 'edited' && comment_json.blank?
|
||||
|
||||
pull.project.webhooks.each do |webhook|
|
||||
|
||||
Reference in New Issue
Block a user