2021-07-27 11:11:23 +08:00
|
|
|
json.id @webhook["id"]
|
|
|
|
|
json.type @webhook["type"]
|
|
|
|
|
json.content_type @webhook["config"]["content_type"]
|
|
|
|
|
json.url @webhook["config"]["url"]
|
2023-04-11 14:41:12 +08:00
|
|
|
json.events @webhook["events"].collect{|i| %w(pull_request issues).include?(i) ? i + "_only" : i}
|
2021-07-27 11:11:23 +08:00
|
|
|
json.active @webhook["active"]
|
|
|
|
|
json.create_time @webhook["created_at"].to_time.strftime("%Y-%m-%d %H:%M:%S")
|