您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enhances GitHub commits with beautiful labels for conventional commit types (feat, fix, docs, etc.)
当前为
A userscript that enhances GitHub commits by adding beautiful labels for conventional commit types. It automatically detects commit types (like feat, fix, docs) and adds visually appealing labels to make your commit history more readable.
Default commit types and their aliases:
feat
, feature
added
, add
update
, updated
removed
, remove
fix
, bugfix
, fixed
hotfix
docs
, doc
, documentation
style
, css
ui
refactor
perf
, performance
optimize
test
, tests
, testing
build
ci
, cd
deploy
, release
deps
, dep
, dependencies
chore
revert
wip
security
i18n
a11y
api
data
config
init
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
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
The script will automatically detect the commit type from the first word of your commit message and add the appropriate label. Make sure to:
type(scope): description
or type: description
Install a userscript manager:
Install the script:
github-commit-labels.js
To contribute or modify the script:
Clone the repository:
git clone https://github.com/nazdridoy/github-commit-labels.git
Make your changes to github-commit-labels.js
Test the script by loading it in your userscript manager
Submit a pull request with your changes
MIT License - see LICENSE for details
Created by nazdridoy
If you encounter any issues or have suggestions: