From de393148d9533a4586504f7aff99f950436ca9a9 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 15 Dec 2023 16:48:33 +0800 Subject: [PATCH] =?UTF-8?q?Github=20issues=E8=BF=81=E7=A7=BB,=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=E5=A4=84=E7=90=86,=20=E9=99=90=E6=B5=81?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=AF=B7=E6=B1=82=E7=AD=89=E5=BE=85,token?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/batch_add_issues.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/batch_add_issues.rake b/lib/tasks/batch_add_issues.rake index 109198f04..d6b76dd07 100644 --- a/lib/tasks/batch_add_issues.rake +++ b/lib/tasks/batch_add_issues.rake @@ -160,7 +160,7 @@ namespace :batch_add_issues do # response = Net::HTTP.get_response(uri) http = Net::HTTP.new(uri.hostname, uri.port) http.use_ssl = true - comment_response = http.send_request('GET', uri.path, nil, {'Content-Type' => 'application/json','authorization' => "Bearer #{ENV['token']}"}) + response = http.send_request('GET', uri.path, nil, {'Content-Type' => 'application/json','authorization' => "Bearer #{ENV['token']}"}) puts "gitee api response.code ===== #{response.code}" lists = JSON.parse(response.body)