prr-kit 2.0.11 → 2.0.12
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/package.json
CHANGED
|
@@ -180,28 +180,7 @@ Wait for response. If empty → detect `origin/main` or `origin/master`.
|
|
|
180
180
|
Set `base_branch` = input or detected default.
|
|
181
181
|
Set `diff_range` = `{base_branch}...{target_branch}`.
|
|
182
182
|
|
|
183
|
-
### 1d.
|
|
184
|
-
|
|
185
|
-
Use the first available method based on platform:
|
|
186
|
-
|
|
187
|
-
**GitHub** (if `active_platform = github` and `pr_number` is set):
|
|
188
|
-
```bash
|
|
189
|
-
gh pr diff {pr_number} --repo {active_platform_repo}
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**GitLab** (if `active_platform = gitlab` and `pr_number` is set):
|
|
193
|
-
```bash
|
|
194
|
-
glab mr diff {pr_number} --repo {active_platform_repo}
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
**Azure DevOps / Bitbucket / fallback:**
|
|
198
|
-
```bash
|
|
199
|
-
git -C {target_repo} diff {base_branch}...{target_branch} --stat
|
|
200
|
-
git -C {target_repo} diff {base_branch}...{target_branch}
|
|
201
|
-
```
|
|
202
|
-
Store diff in memory. Count files changed, lines added/removed.
|
|
203
|
-
|
|
204
|
-
### 1e. Create Session Folder
|
|
183
|
+
### 1d. Create Session Folder
|
|
205
184
|
|
|
206
185
|
Compute the session output folder:
|
|
207
186
|
|
|
@@ -233,9 +212,30 @@ mkdir -p "{session_output}"
|
|
|
233
212
|
|
|
234
213
|
**Store in working context:** `session_output`, `target_branch`, `base_branch`, `pr_number`, `pr_title`, `active_platform`, `active_platform_repo`.
|
|
235
214
|
|
|
215
|
+
### 1e. Load diff
|
|
216
|
+
|
|
217
|
+
Use the first available method based on platform:
|
|
218
|
+
|
|
219
|
+
**GitHub** (if `active_platform = github` and `pr_number` is set):
|
|
220
|
+
```bash
|
|
221
|
+
gh pr diff {pr_number} --repo {active_platform_repo} > "{session_output}/full.diff"
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**GitLab** (if `active_platform = gitlab` and `pr_number` is set):
|
|
225
|
+
```bash
|
|
226
|
+
glab mr diff {pr_number} --repo {active_platform_repo} > "{session_output}/full.diff"
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
**Azure DevOps / Bitbucket / fallback:**
|
|
230
|
+
```bash
|
|
231
|
+
git -C {target_repo} diff {base_branch}...{target_branch} > "{session_output}/full.diff"
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Save the full diff to `{session_output}/full.diff`. Read that file to count files changed, lines added/removed.
|
|
235
|
+
|
|
236
236
|
### 1f. Generate Diffs Folder
|
|
237
237
|
|
|
238
|
-
Parse
|
|
238
|
+
Parse `{session_output}/full.diff` and write per-file markdown files under `{session_output}/diffs/`, mirroring the repo folder tree.
|
|
239
239
|
|
|
240
240
|
**For each changed file in the diff:**
|
|
241
241
|
|
|
@@ -275,6 +275,8 @@ After writing all files, show summary:
|
|
|
275
275
|
✓ Diffs saved: {file_count} files → {session_output}/diffs/
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
+
**⛔ After this point, do NOT run any further `git diff` commands to read file changes. All diff content is now available at `{session_output}/diffs/`. Read those files directly for all subsequent phases.**
|
|
279
|
+
|
|
278
280
|
---
|
|
279
281
|
|
|
280
282
|
## PHASE 2 — DESCRIBE PR
|