新增时向grimoirelab推送事件,修正
This commit is contained in:
parent
e92b288f41
commit
3427fa6768
|
@ -14,7 +14,7 @@ class IssueWebhookJob < ApplicationJob
|
|||
"action": "opened",
|
||||
"number": 1,
|
||||
"issue": {
|
||||
"id": 888,
|
||||
"id": issue.id,
|
||||
"url": "#{domain}/api/v1/#{project.owner.login}/#{project.identifier}/issues/#{issue.id}",
|
||||
"html_url": "#{domain}/#{project.owner.login}/#{project.identifier}/issues/#{issue.id}",
|
||||
"number": 1,
|
||||
|
@ -160,7 +160,7 @@ class IssueWebhookJob < ApplicationJob
|
|||
"username": "#{user.login}"
|
||||
}
|
||||
}
|
||||
puts "event_json:#{event_json.to_json}"
|
||||
# puts "event_json:#{event_json.to_json}"
|
||||
begin
|
||||
url = URI("http://117.50.185.50:80")
|
||||
http = Net::HTTP.new(url.host, url.port)
|
||||
|
|
Loading…
Reference in New Issue