mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:events返回数据处理
This commit is contained in:
@@ -3,7 +3,7 @@ json.type webhook["type"]
|
||||
json.content_type webhook['config']['content_type']
|
||||
json.http_method webhook['config']['http_method']
|
||||
json.url webhook['config']['url']
|
||||
json.events webhook["events"]
|
||||
json.events webhook["events"].collect{|i| %w(pull_request issues).include?(i) ? i + "_only" : i}
|
||||
json.active webhook['active']
|
||||
json.branch_filter webhook['branch_filter']
|
||||
json.created_at format_time(webhook['created_at'].to_time)
|
||||
Reference in New Issue
Block a user