You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git push -u origin feat/<issue#>-<feature-name>`
181
-
5._UPDATE_ the GitHub issue with implementation metadata:
185
+
6._UPDATE_ the GitHub issue with implementation metadata:
182
186
- RUN:
183
187
```bash
184
188
gh issue comment <issue#> --body "$(cat <<'EOF'
@@ -190,7 +194,26 @@ Check for existing work that overlaps with this feature:
190
194
EOF
191
195
)"
192
196
```
193
-
6. _REPORT_ "Worktree created at $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> on branch feat/<issue#>-<feature-name>"
197
+
7. _CREATE_ draft PR so all subsequent pushes are visible:
198
+
- RUN:
199
+
```bash
200
+
cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && gh pr create \
201
+
--draft \
202
+
--base development \
203
+
--title "FROM feat/<issue#>-<feature-name> TO development" \
204
+
--body "$(cat <<'EOF'
205
+
## Summary
206
+
Resolves #<issue#>
207
+
208
+
## Status
209
+
Pipeline in progress — this PR will be marked ready for review when Ralph completes.
210
+
211
+
Generated by `/feature-dev` skill.
212
+
EOF
213
+
)"
214
+
```
215
+
- _CAPTURE_ the PR URL from output
216
+
8. _REPORT_ "Previous run archived. Worktree created at $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> on branch feat/<issue#>-<feature-name>. Draft PR opened."
194
217
195
218
---
196
219
@@ -269,39 +292,40 @@ This phase produces two artifacts in sequence: the PRD markdown file (via `/prd`
269
292
270
293
Feed `tasks/prd-<feature-name>.md` from Step 1 directly into the `/ralph` skill.
271
294
272
-
1. _INVOKE_ `/ralph-archive` first to archive any existing prd.json from a different feature
273
-
2. _INVOKE_ the `/ralph` skill with the PRD file as input:
295
+
1. _INVOKE_ the `/ralph` skill with the PRD file as input (archiving already handled in Phase 4):
274
296
```
275
297
Load the ralph skill and convert tasks/prd-<feature-name>.md to .ralph/prd.json
276
298
277
299
CRITICAL: Set branchName to "feat/<issue#>-<feature-name>" (must match the worktree branch exactly). Do NOT use the "ralph/" prefix.
278
300
```
279
-
3. _VERIFY_ `.ralph/prd.json` exists and contains valid JSON
- _IF_ mismatch: manually fix branchName in prd.json
283
-
5. _VALIDATE_ final story includes git status check:
305
+
4. _VALIDATE_ final story includes git status check:
284
306
- _READ_ the last user story in prd.json
285
307
- _ENSURE_ its acceptance criteria include: "Verify if there are any remaining changes by running git status. If remaining changes exist, commit and push to branch."
286
308
- _IF_ missing: add this criterion to the last story
287
-
6. _COMMIT_ Ralph artifacts:
309
+
5. _COMMIT_ Ralph artifacts:
288
310
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git add .ralph/prd.json .ralph/progress.txt`
289
311
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git commit -s -m "chore: add Ralph config for #<issue#>"`
290
312
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git push`
291
313
7. _REPORT_ "PRD generated and Ralph config committed with <N> user stories"
292
314
293
315
---
294
316
295
-
## Phase 6: Verify Remote & Create PR
317
+
## Phase 6: Final Push & Mark PR Ready
296
318
297
-
All artifacts have been committed and pushed incrementally in previous phases. This phase ensures everything is synced.
319
+
All artifacts have been committed and pushed incrementally in previous phases. This phase catches any stragglers and marks the draft PR as ready for review.
298
320
299
321
1. _VERIFY_ remote is up to date:
300
322
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git status`
301
323
- _IF_ uncommitted changes remain: stage, commit, and push them
302
-
2. _ENSURE_ branch is tracking remote:
303
-
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git push -u origin feat/<issue#>-<feature-name>`
304
-
3. _REPORT_ "All artifacts pushed to feat/<issue#>-<feature-name>"
324
+
2. _PUSH_ any final changes:
325
+
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && git push`
326
+
3. _MARK_ PR ready for review:
327
+
- RUN `cd $ORCHESTRA_PROJECT_ROOT/.worktrees/feat-<issue#> && gh pr ready`
328
+
4. _REPORT_ "All artifacts pushed. PR marked ready for review."
305
329
306
330
---
307
331
@@ -329,6 +353,7 @@ All artifacts have been committed and pushed incrementally in previous phases. T
0 commit comments