From edf4ef97f8b87ca195a21e5b0806d8de65499a1b Mon Sep 17 00:00:00 2001 From: idorozin Date: Fri, 20 Mar 2026 12:15:06 +0200 Subject: [PATCH 1/4] feat: add --github-order flag to control issue execution order When using GitHub issues as a task source, issues are returned newest-first by the API, which may not match the desired execution order. The new --github-order flag accepts comma-separated issue numbers (e.g. 2,3,4,5,6) to execute issues in a specific sequence. Only the listed issues are executed, and in the exact order specified. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 4 ++++ cli/src/cli/args.ts | 4 ++++ cli/src/cli/commands/run.ts | 1 + cli/src/config/types.ts | 2 ++ cli/src/tasks/github.ts | 21 +++++++++++++++++++-- cli/src/tasks/index.ts | 4 +++- 6 files changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 91c074a0..d81d5302 100644 --- a/README.md +++ b/README.md @@ -179,8 +179,11 @@ Titles must be unique. ```bash ralphy --github owner/repo ralphy --github owner/repo --github-label "ready" +ralphy --github owner/repo --github-label "task" --github-order 2,3,4,5,6 ``` +Use `--github-order` to execute issues in a specific order. Without it, issues are processed in the order returned by the GitHub API (newest first). The flag takes comma-separated issue numbers — only those issues will be executed, in the exact order specified. + ## Parallel Execution ```bash @@ -300,6 +303,7 @@ ralphy --parallel --sandbox | `--json FILE` | JSON task file | | `--github REPO` | use GitHub issues | | `--github-label TAG` | filter issues by label | +| `--github-order 2,3,4` | execute issues in this order | | `--sync-issue N` | sync PRD progress to GitHub issue #N | | `--model NAME` | override model for any engine | | `--sonnet` | shortcut for `--claude --model sonnet` | diff --git a/cli/src/cli/args.ts b/cli/src/cli/args.ts index beadad1d..2e74bb40 100644 --- a/cli/src/cli/args.ts +++ b/cli/src/cli/args.ts @@ -49,6 +49,7 @@ export function createProgram(): Command { .option("--json ", "JSON task file") .option("--github ", "GitHub repo for issues (owner/repo)") .option("--github-label