mindspore 最近提交数同步

This commit is contained in:
xxq250 2023-04-19 16:38:42 +08:00
parent 1508013abb
commit 0dffec8902
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ namespace :batch_add_commits do
end
def add_commits_to_project(project,page)
puts "page==========#{page}"
# curl -X GET --header 'Content-Type: application/json;charset=UTF-8' 'https://gitee.com/api/v5/repos/mindspore/mindspore/issues?access_token=5ccebd935915fb6cfcae634b161047a2&state=open&sort=created&direction=desc&page=1&per_page=10'
api_url = "https://gitee.com/api/v5/repos/mindspore/mindspore/commits?access_token=96a637aa055f15056e77e3cf11a67525&state=all&sort=created&direction=desc&page=#{page}&per_page=100"
uri = URI.parse(api_url)