我使用 GitHub api,如下所述:GET /repos/:owner/:repo/tags
该命令如下所示:
curl https://api.github.com/repos/skywinder/ActionSheetPicker-3.0/tags
但是此命令仅获取最后 30 个标签。
是否可以从 GitHub 存储库接收所有标签?
最佳答案
我猜你被分页困扰了:
https://docs.github.com/en/rest/overview/resources-in-the-rest-api#pagination
API 响应包含用于获取列表其他页面的链接。
关于rest - 从 GitHub 存储库获取所有标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26803306/