HB 页头 Git 仓库模块

此模块于页头显示关于 Git 仓库的相关信息,比如最新版本、星星数量、forks 数量。

Modulegithub.com/hbstack/header/modules/git-repo
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Example
HB core module

参数

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}

service

Git 服务商,支持 github

owner

仓库所有者。

name

仓库名称。

docker

Docker 设置,其用于获取镜像的下载数,你需要配置 namespacename

API 身份验证和速率限制

GitHub

你可能需要设置 GITHUB_TOKEN 环境变量以避免遇到 API 速率限制问题。