Skip to main content

git-workflow

Git workflow, branch naming and commit conventions for ts-libs

来源信息

仓库
LedgerHQ/ts-libs
最近来源活动
2026年7月17日 09:42
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
git-workflow
description
Git workflow, branch naming and commit conventions for ts-libs
# Git Workflow ## Branch Naming | Prefix | Use | | ---------- | ---------------------------- | | `feat/` | New library or feature | | `bugfix/` | Bug fix | | `support/` | Refactor, CI, tooling, tests | | `chore/` | Maintenance, config | Examples: `feat/add-errors-lib`, `bugfix/fix-logs-dispatch`, `support/update-nx` Rules: kebab-case, short, one concern per branch. ## Base Branch Always branch from and PR into **`develop`**. `main` is release-only (never commit directly). ## Commit Format Follow **Conventional Commits**: ``` <type>(<scope>): <description> ``` - Description: imperative, lowercase, no period - Scope: library name or area (e.g. `logs`, `ci`, `deps`) ### Types | Type | When | | ---------- | ----------------------------------- | | `feat` | New library or feature | | `fix` | Bug fix | | `refactor` | Restructure without behavior change | | `test` | Add/update tests | | `docs` | Documentation only | | `chore` | Tooling, config, deps | | `ci` | CI/CD changes | | `perf` | Performance improvement | ### Examples ``` feat(logs): add LocalTracer.withUpdatedContext method fix(errors): handle undefined message in serialize refactor(logs): extract dispatch into separate module test(logs): add listen/unsubscribe edge cases chore(deps): bump typescript to 7.1.0 ci: add format check to pull_request workflow ``` ## Best Practices - One commit = one logical change - Never use `--no-verify` — fix the underlying hook failure - Rebase on `develop` before opening a PR - Squash only for trivial cleanup branches
在 GitHub 查看