新增时向grimoirelab推送事件,修正

This commit is contained in:
xxq250 2023-02-16 16:11:40 +08:00
parent e92b288f41
commit 3427fa6768
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class IssueWebhookJob < ApplicationJob
"action": "opened", "action": "opened",
"number": 1, "number": 1,
"issue": { "issue": {
"id": 888, "id": issue.id,
"url": "#{domain}/api/v1/#{project.owner.login}/#{project.identifier}/issues/#{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}", "html_url": "#{domain}/#{project.owner.login}/#{project.identifier}/issues/#{issue.id}",
"number": 1, "number": 1,
@ -160,7 +160,7 @@ class IssueWebhookJob < ApplicationJob
"username": "#{user.login}" "username": "#{user.login}"
} }
} }
puts "event_json:#{event_json.to_json}" # puts "event_json:#{event_json.to_json}"
begin begin
url = URI("http://117.50.185.50:80") url = URI("http://117.50.185.50:80")
http = Net::HTTP.new(url.host, url.port) http = Net::HTTP.new(url.host, url.port)