Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
import getpass
import json
import requests
from github_rest_api import Repositorytoken = getpass.getpass() ········
repo = Repository(token=token, repo="legendu-net/icon")Get All Releases¶
releases = repo.get_releases()len(releases)30print(json.dumps(releases[0], indent=4)){
"url": "https://api.github.com/repos/legendu-net/icon/releases/273732171",
"assets_url": "https://api.github.com/repos/legendu-net/icon/releases/273732171/assets",
"upload_url": "https://uploads.github.com/repos/legendu-net/icon/releases/273732171/assets{?name,label}",
"html_url": "https://github.com/legendu-net/icon/releases/tag/v0.38.2",
"id": 273732171,
"author": {
"login": "dclong",
"id": 824507,
"node_id": "MDQ6VXNlcjgyNDUwNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/824507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dclong",
"html_url": "https://github.com/dclong",
"followers_url": "https://api.github.com/users/dclong/followers",
"following_url": "https://api.github.com/users/dclong/following{/other_user}",
"gists_url": "https://api.github.com/users/dclong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dclong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dclong/subscriptions",
"organizations_url": "https://api.github.com/users/dclong/orgs",
"repos_url": "https://api.github.com/users/dclong/repos",
"events_url": "https://api.github.com/users/dclong/events{/privacy}",
"received_events_url": "https://api.github.com/users/dclong/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"node_id": "RE_kwDOHkKAZc4QUNJL",
"tag_name": "v0.38.2",
"target_commitish": "main",
"name": "v0.38.2",
"draft": false,
"immutable": false,
"prerelease": false,
"created_at": "2026-01-01T21:10:30Z",
"updated_at": "2026-01-01T21:11:48Z",
"published_at": "2026-01-01T21:11:12Z",
"assets": [
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280988",
"id": 335280988,
"node_id": "RA_kwDOHkKAZc4T-_tc",
"name": "icon-v0.38.2-darwin-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6019514,
"digest": "sha256:ef2fddc32c4b5f8b09c53fb99eaa6695a7863318686fb2cff761a632438a9b23",
"download_count": 1,
"created_at": "2026-01-01T21:11:44Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280993",
"id": 335280993,
"node_id": "RA_kwDOHkKAZc4T-_th",
"name": "icon-v0.38.2-darwin-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:05f022e8720eaf5cb81562d4a552f1b24d2fe0960cb820aa851fb866e1f67979",
"download_count": 1,
"created_at": "2026-01-01T21:11:45Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280979",
"id": 335280979,
"node_id": "RA_kwDOHkKAZc4T-_tT",
"name": "icon-v0.38.2-darwin-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5632775,
"digest": "sha256:b0622c33ff2df45477d111d417141f809321bc35742668d299c2e71f32a38d0a",
"download_count": 1,
"created_at": "2026-01-01T21:11:43Z",
"updated_at": "2026-01-01T21:11:44Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280991",
"id": 335280991,
"node_id": "RA_kwDOHkKAZc4T-_tf",
"name": "icon-v0.38.2-darwin-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:b393cd0a365a742ac5b4626f6abc34f95eaf981f14ac109bda3153a75fdb9287",
"download_count": 1,
"created_at": "2026-01-01T21:11:45Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-arm64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335281002",
"id": 335281002,
"node_id": "RA_kwDOHkKAZc4T-_tq",
"name": "icon-v0.38.2-linux-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6028304,
"digest": "sha256:647a536b2e677b6f2d90a8d6db27186a60e5a9568020d655bde8ff7adc8b2719",
"download_count": 2,
"created_at": "2026-01-01T21:11:47Z",
"updated_at": "2026-01-01T21:11:48Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335281007",
"id": 335281007,
"node_id": "RA_kwDOHkKAZc4T-_tv",
"name": "icon-v0.38.2-linux-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:861c3dee7c627ef05c84a1e905a56a0bff70ff2b44be2eaac51f36cb5ad5841d",
"download_count": 1,
"created_at": "2026-01-01T21:11:48Z",
"updated_at": "2026-01-01T21:11:48Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280976",
"id": 335280976,
"node_id": "RA_kwDOHkKAZc4T-_tQ",
"name": "icon-v0.38.2-linux-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5478607,
"digest": "sha256:23fc5ac86ba033d42afac72b18da5bee1e078de089185a280c0e9e0bb73883b4",
"download_count": 1,
"created_at": "2026-01-01T21:11:43Z",
"updated_at": "2026-01-01T21:11:43Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280985",
"id": 335280985,
"node_id": "RA_kwDOHkKAZc4T-_tZ",
"name": "icon-v0.38.2-linux-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:ea4b8db231052c126b578432dde1a067dc4f0f226eee7c2a4c82d528586cb547",
"download_count": 1,
"created_at": "2026-01-01T21:11:44Z",
"updated_at": "2026-01-01T21:11:44Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-arm64.tar.gz.md5"
}
],
"tarball_url": "https://api.github.com/repos/legendu-net/icon/tarball/v0.38.2",
"zipball_url": "https://api.github.com/repos/legendu-net/icon/zipball/v0.38.2",
"body": "## What's Changed\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/201\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/202\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/203\r\n\r\n\r\n**Full Changelog**: https://github.com/legendu-net/icon/compare/v0.38.1...v0.38.2",
"mentions_count": 1
}
releases = resp.json()len(releases)30print(json.dumps(releases[0], indent=4)){
"url": "https://api.github.com/repos/legendu-net/icon/releases/273320221",
"assets_url": "https://api.github.com/repos/legendu-net/icon/releases/273320221/assets",
"upload_url": "https://uploads.github.com/repos/legendu-net/icon/releases/273320221/assets{?name,label}",
"html_url": "https://github.com/legendu-net/icon/releases/tag/v0.38.1",
"id": 273320221,
"author": {
"login": "dclong",
"id": 824507,
"node_id": "MDQ6VXNlcjgyNDUwNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/824507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dclong",
"html_url": "https://github.com/dclong",
"followers_url": "https://api.github.com/users/dclong/followers",
"following_url": "https://api.github.com/users/dclong/following{/other_user}",
"gists_url": "https://api.github.com/users/dclong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dclong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dclong/subscriptions",
"organizations_url": "https://api.github.com/users/dclong/orgs",
"repos_url": "https://api.github.com/users/dclong/repos",
"events_url": "https://api.github.com/users/dclong/events{/privacy}",
"received_events_url": "https://api.github.com/users/dclong/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"node_id": "RE_kwDOHkKAZc4QSokd",
"tag_name": "v0.38.1",
"target_commitish": "main",
"name": "v0.38.1",
"draft": false,
"immutable": false,
"prerelease": false,
"created_at": "2025-12-30T02:18:59Z",
"updated_at": "2025-12-30T02:20:30Z",
"published_at": "2025-12-30T02:19:54Z",
"assets": [
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312627",
"id": 334312627,
"node_id": "RA_kwDOHkKAZc4T7TSz",
"name": "icon-v0.38.1-darwin-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6019490,
"digest": "sha256:ee231efdaee422d841c84bc9c5ec69e7e755a4f9a8ee594fafe3813702038708",
"download_count": 1,
"created_at": "2025-12-30T02:20:25Z",
"updated_at": "2025-12-30T02:20:25Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-darwin-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312630",
"id": 334312630,
"node_id": "RA_kwDOHkKAZc4T7TS2",
"name": "icon-v0.38.1-darwin-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:4b9885db136eb89bab8d8b35ec6f358a3be499db4748957032e8e74c6a1517b3",
"download_count": 1,
"created_at": "2025-12-30T02:20:26Z",
"updated_at": "2025-12-30T02:20:26Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-darwin-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312640",
"id": 334312640,
"node_id": "RA_kwDOHkKAZc4T7TTA",
"name": "icon-v0.38.1-darwin-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5631717,
"digest": "sha256:c434e7b794a81d3a5d0e169b7b3a814682713a75b0a4829fb51fd383176d6eb6",
"download_count": 1,
"created_at": "2025-12-30T02:20:29Z",
"updated_at": "2025-12-30T02:20:30Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-darwin-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312651",
"id": 334312651,
"node_id": "RA_kwDOHkKAZc4T7TTL",
"name": "icon-v0.38.1-darwin-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:66589874a8e634694081fc99e8d3aea32d511633f70bd69d5864e6490347729c",
"download_count": 1,
"created_at": "2025-12-30T02:20:30Z",
"updated_at": "2025-12-30T02:20:30Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-darwin-arm64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312634",
"id": 334312634,
"node_id": "RA_kwDOHkKAZc4T7TS6",
"name": "icon-v0.38.1-linux-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6028389,
"digest": "sha256:781dff80ee57df600674ae68341b2635d82578463ef2126085b8ca8da063ea66",
"download_count": 4,
"created_at": "2025-12-30T02:20:28Z",
"updated_at": "2025-12-30T02:20:29Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-linux-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312641",
"id": 334312641,
"node_id": "RA_kwDOHkKAZc4T7TTB",
"name": "icon-v0.38.1-linux-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:f0ca5efae824ef1a0cc0c66b38f8e2a3fd1f20e87ce6cb80fd1d19c3125702c9",
"download_count": 1,
"created_at": "2025-12-30T02:20:29Z",
"updated_at": "2025-12-30T02:20:30Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-linux-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312624",
"id": 334312624,
"node_id": "RA_kwDOHkKAZc4T7TSw",
"name": "icon-v0.38.1-linux-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5478287,
"digest": "sha256:470c4276d94169c78f3b413fbb98622a44384a192666de7cc1622e199f56a4e3",
"download_count": 1,
"created_at": "2025-12-30T02:20:22Z",
"updated_at": "2025-12-30T02:20:23Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-linux-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312626",
"id": 334312626,
"node_id": "RA_kwDOHkKAZc4T7TSy",
"name": "icon-v0.38.1-linux-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:5c4f5956571c57bcb03496a423f4e94987931fbd61a378e1480804d210a0f674",
"download_count": 1,
"created_at": "2025-12-30T02:20:23Z",
"updated_at": "2025-12-30T02:20:24Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-linux-arm64.tar.gz.md5"
}
],
"tarball_url": "https://api.github.com/repos/legendu-net/icon/tarball/v0.38.1",
"zipball_url": "https://api.github.com/repos/legendu-net/icon/zipball/v0.38.1",
"body": "## What's Changed\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/200\r\n\r\n\r\n**Full Changelog**: https://github.com/legendu-net/icon/compare/v0.38.0...v0.38.1",
"mentions_count": 1
}
Get the Latest Release¶
release = repo.get_release_latest()print(json.dumps(release, indent=4)){
"url": "https://api.github.com/repos/legendu-net/icon/releases/273732171",
"assets_url": "https://api.github.com/repos/legendu-net/icon/releases/273732171/assets",
"upload_url": "https://uploads.github.com/repos/legendu-net/icon/releases/273732171/assets{?name,label}",
"html_url": "https://github.com/legendu-net/icon/releases/tag/v0.38.2",
"id": 273732171,
"author": {
"login": "dclong",
"id": 824507,
"node_id": "MDQ6VXNlcjgyNDUwNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/824507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dclong",
"html_url": "https://github.com/dclong",
"followers_url": "https://api.github.com/users/dclong/followers",
"following_url": "https://api.github.com/users/dclong/following{/other_user}",
"gists_url": "https://api.github.com/users/dclong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dclong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dclong/subscriptions",
"organizations_url": "https://api.github.com/users/dclong/orgs",
"repos_url": "https://api.github.com/users/dclong/repos",
"events_url": "https://api.github.com/users/dclong/events{/privacy}",
"received_events_url": "https://api.github.com/users/dclong/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"node_id": "RE_kwDOHkKAZc4QUNJL",
"tag_name": "v0.38.2",
"target_commitish": "main",
"name": "v0.38.2",
"draft": false,
"immutable": false,
"prerelease": false,
"created_at": "2026-01-01T21:10:30Z",
"updated_at": "2026-01-01T21:11:48Z",
"published_at": "2026-01-01T21:11:12Z",
"assets": [
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280988",
"id": 335280988,
"node_id": "RA_kwDOHkKAZc4T-_tc",
"name": "icon-v0.38.2-darwin-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6019514,
"digest": "sha256:ef2fddc32c4b5f8b09c53fb99eaa6695a7863318686fb2cff761a632438a9b23",
"download_count": 1,
"created_at": "2026-01-01T21:11:44Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280993",
"id": 335280993,
"node_id": "RA_kwDOHkKAZc4T-_th",
"name": "icon-v0.38.2-darwin-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:05f022e8720eaf5cb81562d4a552f1b24d2fe0960cb820aa851fb866e1f67979",
"download_count": 1,
"created_at": "2026-01-01T21:11:45Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280979",
"id": 335280979,
"node_id": "RA_kwDOHkKAZc4T-_tT",
"name": "icon-v0.38.2-darwin-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5632775,
"digest": "sha256:b0622c33ff2df45477d111d417141f809321bc35742668d299c2e71f32a38d0a",
"download_count": 1,
"created_at": "2026-01-01T21:11:43Z",
"updated_at": "2026-01-01T21:11:44Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280991",
"id": 335280991,
"node_id": "RA_kwDOHkKAZc4T-_tf",
"name": "icon-v0.38.2-darwin-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:b393cd0a365a742ac5b4626f6abc34f95eaf981f14ac109bda3153a75fdb9287",
"download_count": 1,
"created_at": "2026-01-01T21:11:45Z",
"updated_at": "2026-01-01T21:11:45Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-darwin-arm64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335281002",
"id": 335281002,
"node_id": "RA_kwDOHkKAZc4T-_tq",
"name": "icon-v0.38.2-linux-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6028304,
"digest": "sha256:647a536b2e677b6f2d90a8d6db27186a60e5a9568020d655bde8ff7adc8b2719",
"download_count": 2,
"created_at": "2026-01-01T21:11:47Z",
"updated_at": "2026-01-01T21:11:48Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-amd64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335281007",
"id": 335281007,
"node_id": "RA_kwDOHkKAZc4T-_tv",
"name": "icon-v0.38.2-linux-amd64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:861c3dee7c627ef05c84a1e905a56a0bff70ff2b44be2eaac51f36cb5ad5841d",
"download_count": 1,
"created_at": "2026-01-01T21:11:48Z",
"updated_at": "2026-01-01T21:11:48Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-amd64.tar.gz.md5"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280976",
"id": 335280976,
"node_id": "RA_kwDOHkKAZc4T-_tQ",
"name": "icon-v0.38.2-linux-arm64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 5478607,
"digest": "sha256:23fc5ac86ba033d42afac72b18da5bee1e078de089185a280c0e9e0bb73883b4",
"download_count": 1,
"created_at": "2026-01-01T21:11:43Z",
"updated_at": "2026-01-01T21:11:43Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-arm64.tar.gz"
},
{
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/335280985",
"id": 335280985,
"node_id": "RA_kwDOHkKAZc4T-_tZ",
"name": "icon-v0.38.2-linux-arm64.tar.gz.md5",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "text/plain",
"state": "uploaded",
"size": 33,
"digest": "sha256:ea4b8db231052c126b578432dde1a067dc4f0f226eee7c2a4c82d528586cb547",
"download_count": 1,
"created_at": "2026-01-01T21:11:44Z",
"updated_at": "2026-01-01T21:11:44Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.2/icon-v0.38.2-linux-arm64.tar.gz.md5"
}
],
"tarball_url": "https://api.github.com/repos/legendu-net/icon/tarball/v0.38.2",
"zipball_url": "https://api.github.com/repos/legendu-net/icon/zipball/v0.38.2",
"body": "## What's Changed\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/201\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/202\r\n* Merge dev Into main by @dclong in https://github.com/legendu-net/icon/pull/203\r\n\r\n\r\n**Full Changelog**: https://github.com/legendu-net/icon/compare/v0.38.1...v0.38.2",
"mentions_count": 1
}
List Release Assets¶
assets = repo.get_release_assets(release=273320221)len(assets)8print(json.dumps(assets[0], indent=4)){
"url": "https://api.github.com/repos/legendu-net/icon/releases/assets/334312627",
"id": 334312627,
"node_id": "RA_kwDOHkKAZc4T7TSz",
"name": "icon-v0.38.1-darwin-amd64.tar.gz",
"label": "",
"uploader": {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/gzip",
"state": "uploaded",
"size": 6019490,
"digest": "sha256:ee231efdaee422d841c84bc9c5ec69e7e755a4f9a8ee594fafe3813702038708",
"download_count": 1,
"created_at": "2025-12-30T02:20:25Z",
"updated_at": "2025-12-30T02:20:25Z",
"browser_download_url": "https://github.com/legendu-net/icon/releases/download/v0.38.1/icon-v0.38.1-darwin-amd64.tar.gz"
}
Make a Release¶
token = getpass.getpass() ········
repo = Repository(token=token, owner="dclong", repo="test_dulwich")resp = repo.create_release(
json={
"tag_name": "v1.1.0",
"target_commitish": "main",
"name": "v1.1.0",
"body": "Testing Releasing Using GitHub REST API",
"draft": False,
"prerelease": False,
"generate_release_notes": True,
},
)print(json.dumps(resp, indent=4)){
"url": "https://api.github.com/repos/dclong/test_dulwich/releases/273738803",
"assets_url": "https://api.github.com/repos/dclong/test_dulwich/releases/273738803/assets",
"upload_url": "https://uploads.github.com/repos/dclong/test_dulwich/releases/273738803/assets{?name,label}",
"html_url": "https://github.com/dclong/test_dulwich/releases/tag/v1.1.0",
"id": 273738803,
"author": {
"login": "dclong",
"id": 824507,
"node_id": "MDQ6VXNlcjgyNDUwNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/824507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dclong",
"html_url": "https://github.com/dclong",
"followers_url": "https://api.github.com/users/dclong/followers",
"following_url": "https://api.github.com/users/dclong/following{/other_user}",
"gists_url": "https://api.github.com/users/dclong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dclong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dclong/subscriptions",
"organizations_url": "https://api.github.com/users/dclong/orgs",
"repos_url": "https://api.github.com/users/dclong/repos",
"events_url": "https://api.github.com/users/dclong/events{/privacy}",
"received_events_url": "https://api.github.com/users/dclong/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"node_id": "RE_kwDOEqobOM4QUOwz",
"tag_name": "v1.1.0",
"target_commitish": "main",
"name": "v1.1.0",
"draft": false,
"immutable": false,
"prerelease": false,
"created_at": "2023-07-23T16:35:12Z",
"updated_at": "2026-01-01T23:09:04Z",
"published_at": "2026-01-01T23:09:04Z",
"assets": [],
"tarball_url": "https://api.github.com/repos/dclong/test_dulwich/tarball/v1.1.0",
"zipball_url": "https://api.github.com/repos/dclong/test_dulwich/zipball/v1.1.0",
"body": "Testing Releasing Using GitHub REST API\n\n## What's Changed\n* Update abc by @dclong in https://github.com/dclong/test_dulwich/pull/1\n\n## New Contributors\n* @dclong made their first contribution in https://github.com/dclong/test_dulwich/pull/1\n\n**Full Changelog**: https://github.com/dclong/test_dulwich/compare/v1.0.0...v1.1.0",
"mentions_count": 1
}
Upload a Release Assets¶
resp = repo.upload_release_asset(
release=273738803,
name="example.txt",
path="./example.txt",
)print(json.dumps(resp, indent=4)){
"url": "https://api.github.com/repos/dclong/test_dulwich/releases/assets/335315240",
"id": 335315240,
"node_id": "RA_kwDOEqobOM4T_IEo",
"name": "example.txt",
"label": "",
"uploader": {
"login": "dclong",
"id": 824507,
"node_id": "MDQ6VXNlcjgyNDUwNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/824507?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dclong",
"html_url": "https://github.com/dclong",
"followers_url": "https://api.github.com/users/dclong/followers",
"following_url": "https://api.github.com/users/dclong/following{/other_user}",
"gists_url": "https://api.github.com/users/dclong/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dclong/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dclong/subscriptions",
"organizations_url": "https://api.github.com/users/dclong/orgs",
"repos_url": "https://api.github.com/users/dclong/repos",
"events_url": "https://api.github.com/users/dclong/events{/privacy}",
"received_events_url": "https://api.github.com/users/dclong/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 67,
"digest": "sha256:476a862d7dd44946db43e560735d3241f4200b4e7adde9206f11dbd308aa1605",
"download_count": 0,
"created_at": "2026-01-01T23:12:37Z",
"updated_at": "2026-01-01T23:12:37Z",
"browser_download_url": "https://github.com/dclong/test_dulwich/releases/download/v1.1.0/example.txt"
}