此模块于页头显示关于 Git 仓库的相关信息,比如最新版本、星星数量、forks 数量。
成为我们的资助者或赞助商,以支持我们的工作。
| Module | github.com/hbstack/header/modules/git-repo |
|---|---|
| Repository | ⭐ Please consider giving a star if your like it. |
| Stars | |
| Version | |
| Used by | |
| Requirements | |
| License | |
| Usage | See how to use modules. |

params.toml
1[hb]
2 [hb.header]
3 [hb.header.git_repo]
4 name = 'hb'
5 owner = 'hbstack'
6 service = 'github'
params.yaml
1hb:
2 header:
3 git_repo:
4 name: hb
5 owner: hbstack
6 service: github
params.json
1{
2 "hb": {
3 "header": {
4 "git_repo": {
5 "name": "hb",
6 "owner": "hbstack",
7 "service": "github"
8 }
9 }
10 }
11}
serviceGit 服务商,支持 github。
owner仓库所有者。
name仓库名称。
dockerDocker 设置,其用于获取镜像的下载数,你需要配置 namespace 和 name。
你可能需要设置 GITHUB_TOKEN 环境变量以避免遇到 API 速率限制问题。