Repository navigation
feat(task): add affected JSON output - #11593
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryAdds machine-readable affected-project and affected-task selection to
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains within the eligible follow-up review scope. Important Files Changed
Reviews (6): Last reviewed commit: "feat(task): add affected JSON output" | Re-trigger Greptile |
cf4b78b to
bafe082
Compare
bafe082 to
2557883
Compare
2557883 to
94c60f4
Compare
94c60f4 to
96e2d79
Compare
Instruction counts
No instruction-count regression above 1%. Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run. Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.
|
96e2d79 to
248dc1a
Compare
248dc1a to
9eeb815
Compare
Summary
mise run --affected --affected-jsonfor machine-readable project and task selectionValidation
mise run lintcargo clippy --workspace --all-features --all-targets -- -D warningsmise run test:e2e e2e/tasks/test_task_affectedmise run renderAI-assisted — Tool: Codex; model: unavailable/unavailable; version: unavailable.
Stack created with GitHub Stacks CLI • Give Feedback 💬
Note
Low Risk
Additive CLI and output path on existing experimental affected selection; early exit avoids side effects and is covered by e2e.
Overview
Adds
--affected-jsontomise run(with--affected) so CI and other tools can get the same pre-expansion selection as--affected-explain, but as stable pretty-printed JSON. The payload includesbase/head, affected projects (id,root,reasons), and matched tasks (name,projects).When JSON mode is on, the run path returns immediately after emitting output—no dependency expansion, tool install, or task execution.
--affected-jsonand--affected-explainare mutually exclusive. Call sites that constructRun(bootstrap, shorthand task routing) passaffected_json: false.Docs, usage spec, man pages, monorepo guide, the task-cache parity tracker, and an e2e
assert_jsoncheck cover the flag and schema.Reviewed by Cursor Bugbot for commit 9eeb815. Bugbot is set up for automated code reviews on this repo. Configure here.