mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
update pr model and webhook
This commit is contained in:
@@ -60,8 +60,8 @@ class TouchWebhookJob < ApplicationJob
|
||||
end
|
||||
|
||||
when 'PullRequestComment'
|
||||
pull_id, sender_id, comment_id = args[0], args[1], args[2]
|
||||
pull = PullRequest.find_by_id pull_id
|
||||
issue_id, sender_id, comment_id = args[0], args[1], args[2]
|
||||
pull = Issue.find_by_id(issue_id).try(:pull_request)
|
||||
comment = pull.issue.comment_journals.find_by_id comment_id
|
||||
sender = User.find_by_id sender_id
|
||||
return if pull.nil? || sender.nil? || comment.nil?
|
||||
|
||||
Reference in New Issue
Block a user