mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:webhook client里数据reload
This commit is contained in:
@@ -7,8 +7,8 @@ class Webhook::IssueClient
|
||||
|
||||
def initialize(webhook, issue, sender, event, changes={})
|
||||
@webhook = webhook
|
||||
@issue = issue
|
||||
@sender = sender
|
||||
@issue = issue.reload
|
||||
@sender = sender.reload
|
||||
@event = event
|
||||
@changes = changes
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@ class Webhook::IssueCommentClient
|
||||
|
||||
def initialize(webhook, issue, journal, sender, event, action_type, comment_json={})
|
||||
@webhook = webhook
|
||||
@issue = issue
|
||||
@journal = journal
|
||||
@sender = sender
|
||||
@issue = issue.reload
|
||||
@journal = journal.reload
|
||||
@sender = sender.reload
|
||||
@event = event
|
||||
@action_type = action_type
|
||||
@comment_json = comment_json
|
||||
|
||||
@@ -5,9 +5,9 @@ class Webhook::PullCommentClient
|
||||
|
||||
def initialize(webhook, pull, journal, sender, event, action_type='created', comment_json={})
|
||||
@webhook = webhook
|
||||
@pull = pull
|
||||
@journal = journal
|
||||
@sender = sender
|
||||
@pull = pull.reload
|
||||
@journal = journal.reload
|
||||
@sender = sender.reload
|
||||
@event = event
|
||||
@action_type = action_type
|
||||
@comment_json = comment_json
|
||||
|
||||
Reference in New Issue
Block a user