mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
修复:部分issue
This commit is contained in:
@@ -55,7 +55,7 @@ module Webhook::Client
|
||||
|
||||
@response_content["status"] = response.code
|
||||
@response_content["headers"] = response.headers
|
||||
@response_content["body"] = response.body.to_json
|
||||
@response_content["body"] = response.body
|
||||
|
||||
rescue => e
|
||||
@response_content["status"] = 500
|
||||
|
||||
@@ -89,6 +89,7 @@ class Webhook::IssueClient
|
||||
{
|
||||
"action": @changes["assigners"].blank? ? "unassigned" : "assigned",
|
||||
"number": @issue.project_issues_index,
|
||||
"changes": @changes,
|
||||
"issue": JSON.parse(@issue.to_builder.target!),
|
||||
"project": JSON.parse(@issue.project.to_builder.target!),
|
||||
"sender": JSON.parse(@sender.to_builder.target!)
|
||||
|
||||
@@ -7,7 +7,7 @@ class Webhook::IssueCommentClient
|
||||
def initialize(webhook, issue, journal, sender, event, action_type, comment_json={})
|
||||
@webhook = webhook
|
||||
@issue = issue.reload
|
||||
@journal = journal.reload
|
||||
@journal = journal.present? ? journal.reload : nil
|
||||
@sender = sender.reload
|
||||
@event = event
|
||||
@action_type = action_type
|
||||
|
||||
@@ -6,7 +6,7 @@ class Webhook::PullCommentClient
|
||||
def initialize(webhook, pull, journal, sender, event, action_type='created', comment_json={})
|
||||
@webhook = webhook
|
||||
@pull = pull.reload
|
||||
@journal = journal.reload
|
||||
@journal = journal.present? ? journal.reload : nil
|
||||
@sender = sender.reload
|
||||
@event = event
|
||||
@action_type = action_type
|
||||
|
||||
Reference in New Issue
Block a user