@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 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: a repo
95
- name beside the repo's own origin, or a full git URL. Empty by default,
96
- then no prompt is kept
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
@@ -39,7 +39,7 @@
39
39
  "ecosystem": null,
40
40
  "resolvedVersion": null,
41
41
  "via": null,
42
- "hash": "0x5cf663c108f9dc04"
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": "0xd579ad4abeb87732"
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]}${pmRepo}${match[2] ?? ''}` : '';
170
+ return match ? `${match[1]}${name}${match[2] ?? ''}` : '';
168
171
  }
169
172
 
170
173
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggdna/dna-gg",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "DNA layer: gg CLI workflow guides, repo setup scripts and CI check",
5
5
  "keywords": [
6
6
  "dna",