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不会随键值一起发送键。 –