HB Header Git Repository Module

This module shows information about the Git repository on the header, such as latest release, number of stars and number of 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

Parameters

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

The Git service, github is supported.

owner

The repository owner.

name

The repository name.

docker

The Docker settings, which is used to fetch the image’s pull count, you’ll need to configure the namespace and name.

API Authentication and Rate Limit

GitHub

You may need to set the GITHUB_TOKEN environment var to get rid of encountering API rate limit issue.

razonyang
Monday, July 15, 2024 Monday, January 1, 2024