新增:webhook client里数据reload
This commit is contained in:
parent
1e3ad9e988
commit
a69e4e5014
|
@ -7,8 +7,8 @@ class Webhook::IssueClient
|
||||||
|
|
||||||
def initialize(webhook, issue, sender, event, changes={})
|
def initialize(webhook, issue, sender, event, changes={})
|
||||||
@webhook = webhook
|
@webhook = webhook
|
||||||
@issue = issue
|
@issue = issue.reload
|
||||||
@sender = sender
|
@sender = sender.reload
|
||||||
@event = event
|
@event = event
|
||||||
@changes = changes
|
@changes = changes
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ class Webhook::IssueCommentClient
|
||||||
|
|
||||||
def initialize(webhook, issue, journal, sender, event, action_type, comment_json={})
|
def initialize(webhook, issue, journal, sender, event, action_type, comment_json={})
|
||||||
@webhook = webhook
|
@webhook = webhook
|
||||||
@issue = issue
|
@issue = issue.reload
|
||||||
@journal = journal
|
@journal = journal.reload
|
||||||
@sender = sender
|
@sender = sender.reload
|
||||||
@event = event
|
@event = event
|
||||||
@action_type = action_type
|
@action_type = action_type
|
||||||
@comment_json = comment_json
|
@comment_json = comment_json
|
||||||
|
|
|
@ -5,9 +5,9 @@ class Webhook::PullCommentClient
|
||||||
|
|
||||||
def initialize(webhook, pull, journal, sender, event, action_type='created', comment_json={})
|
def initialize(webhook, pull, journal, sender, event, action_type='created', comment_json={})
|
||||||
@webhook = webhook
|
@webhook = webhook
|
||||||
@pull = pull
|
@pull = pull.reload
|
||||||
@journal = journal
|
@journal = journal.reload
|
||||||
@sender = sender
|
@sender = sender.reload
|
||||||
@event = event
|
@event = event
|
||||||
@action_type = action_type
|
@action_type = action_type
|
||||||
@comment_json = comment_json
|
@comment_json = comment_json
|
||||||
|
|
Loading…
Reference in New Issue