| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
docs: Rename docs-v2 to docs (#4855) Change name of the root folder for docs <!-- Summary by @propel-code-bot --> --- **Rename Documentation Root Directory from `docs-v2` to `docs`** This pull request renames the root documentation directory from `docs-v2` to `docs` and updates all internal references accordingly. The update is a structural change that standardizes the main documentation folder and all internal edit/contribution links, ensuring consistency across the project. No documentation content or code has been changed except for the updated references and reorganization. <details> <summary><strong>Key Changes</strong></summary> • Renamed documentation root directory from `docs-v2` to `docs`. • Updated all documentation files and internal edit/contribution links to point to the new `docs/` directory. • Reorganized the docs structure so that all files and subdirectories previously under `docs-v2/` now reside under `docs/`. • Adjusted any hard-coded paths within markdown files (e.g., edit/contribution links) from `docs-v2` to `docs` throughout the documentation. </details> <details> <summary><strong>Affected Areas</strong></summary> • `docs-v2/` (now renamed to `docs/`) • All documentation markdown (`.mdx`) files referencing the docs root folder • Paths within contribution, edit, and helper links in documentation • Any tooling, scripts, or integrations that rely on the previous docs path (potentially in CI, build pipelines, or static site generators) </details> --- *This summary was automatically generated by @propel-code-bot* | 11 个月前 | |
fix(husky): skip prepare-commit-msg during rebase (#6168) ## Problem When running `git rebase` (and similarly `git cherry-pick`) HEAD is detached for each commit being replayed. The `prepare-commit-msg` hook calls `git symbolic-ref --short HEAD`, which fails for every replayed commit with: ``` fatal: ref HEAD is not a symbolic ref ``` The errors are harmless (the rebase still succeeds), but they pollute the output. The hook would also potentially mutate already-written commit messages during replay, which is not the intent of `prepare-commit-msg`. ## Solution Early-exit the hook when the repo is mid-rebase or mid-cherry-pick. Detection uses standard git markers under `$GIT_DIR`: - `rebase-merge/` — interactive and merge-based rebases - `rebase-apply/` — `git am` and `git rebase --apply` (legacy) - `CHERRY_PICK_HEAD` — cherry-pick in progress No `2>/dev/null` is used, so any *unexpected* failure of `git symbolic-ref` (corrupt repo, missing HEAD, etc.) will still surface during normal commits. ## Testing Verified by running the hook directly with a temp commit-msg file under each condition: - [x] Original script + detached HEAD + `rebase-merge/` → reproduces `fatal: ref HEAD is not a symbolic ref` (control) - [x] Fixed script + detached HEAD + `rebase-merge/` → exits 0, no output - [x] Fixed script + detached HEAD + `CHERRY_PICK_HEAD` → exits 0, no output - [x] Fixed script + normal state + non-`gh-` branch → message unchanged, exits 0 - [x] Fixed script + normal state + `gh-123-foo` branch → message prefixed with `[gh-123]`, exits 0 | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 11 个月前 | ||
| 4 个月前 |