github 获取repo 发布的版本号
2024-08-31 06:01:48
获取最新版本
https://api.github.com/repos/nickchou/paopao/releases/latest
获取版本列表
https://api.github.com/repos/nickchou/paopao/releases
nickhou:github账号,根据需要换成需要的
paopao:github托管的repo项目名,更换为自己想要的
http抓取数据反序列化后解析即可
案例:github获取最新版本(/releases/latest)返回的json
{
"url": "https://api.github.com/repos/nickchou/paopao/releases/12361298",
"assets_url": "https://api.github.com/repos/nickchou/paopao/releases/12361298/assets",
"upload_url": "https://uploads.github.com/repos/nickchou/paopao/releases/12361298/assets{?name,label}",
"html_url": "https://github.com/nickchou/paopao/releases/tag/v1.2",
"id": 12361298,
"node_id": "MDc6UmVsZWFzZTEyMzYxMjk4",
"tag_name": "v1.2",
"target_commitish": "master",
"name": "paopao.v1.2",
"draft": false,
"author": {
"login": "nickchou",
"id": 5896766,
"node_id": "MDQ6VXNlcjU4OTY3NjY=",
"avatar_url": "https://avatars2.githubusercontent.com/u/5896766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nickchou",
"html_url": "https://github.com/nickchou",
"followers_url": "https://api.github.com/users/nickchou/followers",
"following_url": "https://api.github.com/users/nickchou/following{/other_user}",
"gists_url": "https://api.github.com/users/nickchou/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nickchou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickchou/subscriptions",
"organizations_url": "https://api.github.com/users/nickchou/orgs",
"repos_url": "https://api.github.com/users/nickchou/repos",
"events_url": "https://api.github.com/users/nickchou/events{/privacy}",
"received_events_url": "https://api.github.com/users/nickchou/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2018-08-11T14:16:10Z",
"published_at": "2018-08-11T14:19:58Z",
"assets": [
{
"url": "https://api.github.com/repos/nickchou/paopao/releases/assets/8212410",
"id": 8212410,
"node_id": "MDEyOlJlbGVhc2VBc3NldDgyMTI0MTA=",
"name": "paopao.v1.2.rar",
"label": null,
"uploader": {
"login": "nickchou",
"id": 5896766,
"node_id": "MDQ6VXNlcjU4OTY3NjY=",
"avatar_url": "https://avatars2.githubusercontent.com/u/5896766?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nickchou",
"html_url": "https://github.com/nickchou",
"followers_url": "https://api.github.com/users/nickchou/followers",
"following_url": "https://api.github.com/users/nickchou/following{/other_user}",
"gists_url": "https://api.github.com/users/nickchou/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nickchou/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nickchou/subscriptions",
"organizations_url": "https://api.github.com/users/nickchou/orgs",
"repos_url": "https://api.github.com/users/nickchou/repos",
"events_url": "https://api.github.com/users/nickchou/events{/privacy}",
"received_events_url": "https://api.github.com/users/nickchou/received_events",
"type": "User",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 120482,
"download_count": 3,
"created_at": "2018-08-11T14:19:42Z",
"updated_at": "2018-08-11T14:19:46Z",
"browser_download_url": "https://github.com/nickchou/paopao/releases/download/v1.2/paopao.v1.2.rar"
}
],
"tarball_url": "https://api.github.com/repos/nickchou/paopao/tarball/v1.2",
"zipball_url": "https://api.github.com/repos/nickchou/paopao/zipball/v1.2",
"body": "* 新增多线程支持\r\n* 新增线程可暂停、终止功能\r\n* 继续优化log4net日志格式\r\n* 窗体resize控件自使用,虽然还是有点丑,讲究用吧\r\n* 执行结果日期格式精简\r\n* 文本日志去空格换行等"
}
最新文章
- c#项目架构搭建经验
- c# 利用结构体获取json数据
- 小菜鸟学 Spring-bean scope (一)
- Python中的*args和**kwargs
- java使用Thumbnailator操作图片
- 红帽/CentOS ext4无法格式化大分区 补充ext4格式化方式
- 虚拟DOM详解
- 2.CLI标准
- 深入理解Spring IOC工作原理
- yii2记录
- 生成树协议stp
- WindowsAPI每日一练(1) MessageBoxA
- Go win32 - 1
- html头部标签大全
- MySQL数据库之视图
- Mono Touch Table应用
- 44 CSS 浮动 模态框 定位
- jQuery中turn.js(翻页效果)学习笔记
- 【timeisprecious】【JavaScript 】JavaScript RegExp 对象
- logging模块配置笔记
热门文章
- 51NOD 1128正整数分组V2 二分答案
- adb offline解决办法
- Appium环境搭建及“fn must be a function”问题解决
- ipv4配置
- mysql 分类
- 03018_监听器Listener
- NopCommerce 导航菜单HTML静态处理以提高性能
- Android TV 开发(2)
- Windows网络编程笔记5 -- 其他套接字
- Hive jdbc连接出现java.sql.SQLException: enabling autocommit is not supported