GitHub Commit Labels

Enhances GitHub commits with beautiful labels for conventional commit types (feat, fix, docs, etc.)

< 脚本GitHub Commit Labels的反馈

提问/评论

§
发表于:2025-04-26

Hello,

I just like to know if your script is for those who have repositories on GitHub or for everyone please ?

Because after installing your script, no labels are displayed on my side for example here :
-> https://github.com/refined-github/refined-github/commits/main/
-> https://github.com/Tampermonkey/tampermonkey/commits/master/

Thank you for your answer.

Google Chrome and Mozilla Firefox Browsers with Tampermonkey or Violentmonkey

nazdridoy作者
§
发表于:2025-04-26
编辑于:2025-04-26

Hi, this script should work for anyone using GitHub repositories, whether it's your own or someone else's. However, the script will only display labels for repositories that follow a Git commit message convention.

See: -> https://github.com/refined-github/sandbox/commits/conventional-commits/ -> https://github.com/nazdridoy/ngpt/commits/main/ -> https://github.com/nazdridoy/kokoro-tts/commits/main -> https://github.com/conventional-changelog/standard-version/commits

Example Commit Formats Here are some examples of how to format your commits to get the labels:

# Basic format
feat: add new login functionality
fix: resolve authentication bug
docs: update API documentation

# With scope
feat(auth): implement OAuth2 login
fix(api): handle rate limiting errors
feat!(auth): implement breaking change in auth
refactor!(parser): rewrite parser logic (breaking change)
docs(readme): add installation guide
style(button): improve hover effects
refactor(service): clean up user service code
perf(db): optimize database queries
test(auth): add unit tests for auth service

发表回复

登录(不可用)以发表回复。

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元