GitHub Releases
Overview
概述
GitHub Releases driver allows you to mount GitHub repository releases as a file system, enabling direct access to release assets through a familiar directory structure.
GitHub Releases 驱动允许您将 GitHub 仓库的发布版本挂载为文件系统,通过熟悉的目录结构直接访问发布资源。
API Rate Limits
API 速率限制
Rate Limits
- Unauthenticated requests: 60 requests per hour
- Authenticated requests (with token): 5,000 requests per hour
We recommend using a personal access token to avoid hitting rate limits.
速率限制
- 未认证请求:每小时 60 次请求
- 已认证请求(使用令牌):每小时 5,000 次请求
建议使用个人访问令牌以避免触及速率限制。
Repository Configuration
仓库配置
Basic Usage
基本用法
Single Repository Mount
Mount a single repository to the root directory:
OpenListTeam/OpenListThis is equivalent to:
/:OpenListTeam/OpenList单个仓库挂载
将单个仓库挂载到根目录:
OpenListTeam/OpenList等价于:
/:OpenListTeam/OpenListMultiple Repositories
多个仓库
Mount to Subdirectories
You can mount multiple repositories to different subdirectories:
/openlist-gh:OpenListTeam/OpenList
/openlist-frontend-gh:OpenListTeam/OpenList-FrontendThe leading / is optional:
openlist-gh:OpenListTeam/OpenList
openlist-frontend-gh:OpenListTeam/OpenList-Frontend挂载到子目录
您可以将多个仓库挂载到不同的子目录:
/openlist-gh:OpenListTeam/OpenList
/openlist-frontend-gh:OpenListTeam/OpenList-Frontend前导的 / 可以省略:
openlist-gh:OpenListTeam/OpenList
openlist-frontend-gh:OpenListTeam/OpenList-FrontendConfiguration Options
配置选项
Personal Access Token
个人访问令牌
When to use:
- Required for accessing private repositories
- Recommended to avoid rate limiting issues
How to get:
- Log in to GitHub
- Visit: https://github.com/settings/tokens
- Generate a new token with appropriate permissions
Show All Versions
显示所有版本
Disabled (default):
openlist/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zipEnabled:
openlist/
├── v3.41.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── v3.40.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
└── v3.39.4/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zipWhen enabled, all available release versions are displayed in separate directories.
禁用(默认):
openlist/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zip启用:
openlist/
├── v3.41.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── v3.40.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
└── v3.39.4/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zip启用后,所有可用的发布版本都会显示在单独的目录中。
Pagination Control (Show All Versions)
分页控制(显示所有版本)
When "Show All Versions" is enabled, you can control the number of releases fetched via pagination:
per_page: Number of releases per page (default:30, max:100)max_page: Maximum number of pages to fetch (0means unlimited)
These settings help you avoid hitting API rate limits when repositories have a large number of releases.
Example:
To fetch at most 2 pages with 50 releases per page (up to 100 releases total):
per_page = 50
max_page = 2TIP
A single unauthenticated request counts as 1 toward the 60 requests/hour limit. With per_page=100 and max_page=1, fetching releases for a single repository costs only 1 request.
当启用"显示所有版本"时,您可以通过分页控制获取的发布数量:
per_page:每页 release 数量(默认:30,最大:100)max_page:最大请求页数(0表示不限页数)
当仓库有大量发布版本时,这些设置可以帮助您避免触发 API 速率限制。
配置示例:
最多请求 2 页,每页 50 个 release(最多获取 100 个 release):
per_page = 50
max_page = 2TIP
单次未认证请求计为 1 次,占每小时 60 次限额。设 per_page=100、max_page=1 时,获取单个仓库的 release 仅消耗 1 次请求。
Show README Files
显示 README 文件
Disabled (default):
openlist/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zipEnabled:
openlist/
├── v3.41.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── v3.40.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── LICENSE
├── README.md
└── README_cn.mdTIP
When enabled, README and LICENSE files from the repository are displayed alongside releases. However, folder size and modification time information will not be shown.
禁用(默认):
openlist/
├── openlist-linux-amd64.tar.gz
└── openlist-windows-amd64.zip启用:
openlist/
├── v3.41.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── v3.40.0/
│ ├── openlist-linux-amd64.tar.gz
│ └── openlist-windows-amd64.zip
├── LICENSE
├── README.md
└── README_cn.mdTIP
启用后,仓库的 README 和 LICENSE 文件会与发布版本一起显示。但是,不会显示文件夹大小和修改时间信息。
GitHub Proxy Settings
GitHub 代理设置
Use GitHub proxy services to accelerate downloads in regions with limited GitHub access.
Configuration: Replace the GitHub domain with a proxy service URL:
https://gh-proxy.com/https://github.comAvailable Proxy Services:
| Service | URL |
|---|---|
| GH-Proxy | https://gh-proxy.com/https://github.com |
| GHProxy.net | https://ghproxy.net/https://github.com |
| GHFast | https://ghfast.top/https://github.com |
Example:
Before: https://github.com/owner/repo/releases/download/v1.0/file.zip
After: https://ghproxy.net/https://github.com/owner/repo/releases/download/v1.0/file.zipWARNING
Proxy services are third-party and may have varying availability and performance.
使用 GitHub 代理服务来加速在 GitHub 访问受限地区的下载。
配置方法: 将 GitHub 域名替换为代理服务 URL:
https://gh-proxy.com/https://github.com可用代理服务:
| 服务 | URL |
|---|---|
| GH-Proxy | https://gh-proxy.com/https://github.com |
| GHProxy.net | https://ghproxy.net/https://github.com |
| GHFast | https://ghfast.top/https://github.com |
示例:
转换前:https://github.com/owner/repo/releases/download/v1.0/file.zip
转换后:https://ghproxy.net/https://github.com/owner/repo/releases/download/v1.0/file.zipWARNING
代理服务为第三方提供,可用性和性能可能存在差异。