0
我想獲得每小時每天的提交數量。使用以下命令,我能夠以json格式獲得輸出。但是,我想知道是否可以使用命令行將鍵添加到json格式的值中?Git統計信息API JSON
curl https://api.github.com/repos/test/myrepo/stats/punch_card
電流輸出:
[
0,
2,
32
]
預期輸出:
[
day: 0,
hour: 2,
commits: 32
]
至於[GitHub的API(https://開頭developer.github.com/v3/repos/statistics/)文檔說,API不會隨鍵值一起發送鍵。 –