Commit 3d960c1
fix: address PR #249 review feedback
- message-builder: import PROJECT_SCOPED_TYPES from types.ts instead of
inlining the type list, so adding a new project-scoped type won't
silently lose its 仓库 annotation.
- message-builder: widen formatRepositoryLabel regex to capture the full
path so nested GitLab subgroups (group/sub/repo) and trailing .git
don't get truncated.
- scope.ts findGitDir: drop redundant statSync+dead branch; existsSync
already covers both directory (.git/) and file (worktree .git) cases.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4ae9944 commit 3d960c1
2 files changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
| 1046 | + | |
1046 | 1047 | | |
1047 | 1048 | | |
1048 | 1049 | | |
| |||
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
1092 | | - | |
| 1093 | + | |
1093 | 1094 | | |
1094 | 1095 | | |
1095 | 1096 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 71 | + | |
| 72 | + | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| |||
0 commit comments