Commit a1737ca
fix: get-pr-context scripts resolve REPO_ROOT incorrectly after deployment
Scripts live 2 levels deep in source (scripts/bash/, scripts/powershell/)
but are deployed 3 levels deep (.documentation/scripts/bash/, .documentation/scripts/powershell/).
The hardcoded '../..' resolved to .documentation/ instead of the repo root.
Both scripts now use `git rev-parse --show-toplevel` first (always correct),
with a 3-level-up directory fallback for non-git environments — matching the
pattern already used by common.sh/common.ps1.
The PowerShell script's $repoRoot is now a plain string (matching Get-RepoRoot
in common.ps1), so three $repoRoot.Path references are updated to $repoRoot.
Agent-Logs-Url: https://github.com/markhazleton/spec-kit/sessions/68e9588e-12f7-4aaa-91fd-6c14def251d3
Co-authored-by: markhazleton <223906+markhazleton@users.noreply.github.com>1 parent f27a8e2 commit a1737ca
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | | - | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
177 | | - | |
| 182 | + | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
182 | | - | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
0 commit comments