@ggdna/dna-gg 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dna/_generated.json +2 -2
- package/dna/dot-claude/hooks/pm-prompts.mjs +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,9 +91,11 @@ appends the `Workspace` section.
|
|
|
91
91
|
- `dnaJiraPrefix` — the prefix of a ticket id
|
|
92
92
|
- `dnaGitQuickCheckPipelineName` — the name the branch rules require
|
|
93
93
|
- `dnaPubDevPublisher` — the pub.dev publisher packages are transferred to
|
|
94
|
-
- `dnaPmRepo` — the project management repo the prompts go to:
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
- `dnaPmRepo` — the project management repo the prompts go to: its name
|
|
95
|
+
with `.git` appended, e.g. `my_pm.git`, which finds it beside the repo's
|
|
96
|
+
own origin, or a full git URL. helix re-cases a bare name like `my_pm`
|
|
97
|
+
to the case of the reference, `.git` keeps it as written. Empty by
|
|
98
|
+
default, then no prompt is kept
|
|
97
99
|
|
|
98
100
|
`dnaCopyrightHolder`, `dnaCompany` and `dnaJiraPrefix` name the
|
|
99
101
|
organization, so they are never inherited: every layer or project listing
|
package/dna/_generated.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"ecosystem": null,
|
|
40
40
|
"resolvedVersion": null,
|
|
41
41
|
"via": null,
|
|
42
|
-
"hash": "
|
|
42
|
+
"hash": "0xfe22fbb14f0e05fd"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"claude": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"path": ".claude/hooks/pm-prompts.mjs",
|
|
58
|
-
"hash": "
|
|
58
|
+
"hash": "0x988aed96a8073727"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"path": ".claude/settings.json",
|
|
@@ -157,14 +157,17 @@ function originOf(dir, depth = 0) {
|
|
|
157
157
|
/**
|
|
158
158
|
* The URL of the project management repo [pmRepo] beside the repo cloned
|
|
159
159
|
* from [origin]: same host, same organization. A full URL is taken as is.
|
|
160
|
+
* The name may end in `.git`: the DNA writes it that way, because helix
|
|
161
|
+
* would re-case a bare name like `my_pm` into `myPm`.
|
|
160
162
|
*/
|
|
161
163
|
export function pmRepoUrl(pmRepo, origin) {
|
|
162
164
|
if (!pmRepo) return '';
|
|
163
165
|
if (/^[a-z][a-z0-9+.-]*:\/\/|^[^/\\\s]+@[^/\\\s]+:/i.test(pmRepo)) {
|
|
164
166
|
return pmRepo;
|
|
165
167
|
}
|
|
168
|
+
const name = pmRepo.replace(/\.git$/, '');
|
|
166
169
|
const match = (origin ?? '').match(/^(.*[/:\\])[^/:\\]+?(\.git)?[/\\]?$/);
|
|
167
|
-
return match ? `${match[1]}${
|
|
170
|
+
return match ? `${match[1]}${name}${match[2] ?? ''}` : '';
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
/**
|