fix(docs): Fix loop to iterate over results.runs#3077
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (11)📓 Common learnings📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
📚 Learning: 2025-11-27T16:27:35.304ZApplied to files:
🔇 Additional comments (1)
WalkthroughA documentation example for the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🚩 Pre-existing doc code errors in childTask1 and childTask2 examples
The example code for childTask1 and childTask2 (shared across the batch.triggerAndWait and batch.triggerByTask sections) contains bugs that would produce incorrect runtime behavior if a user copied them:
- At
docs/triggering.mdx:565,childTask1doesreturn \Hello ${payload}`wherepayloadis{ foo: string }. This would stringify toHello [object Object]instead of the likely intendedHello ${payload.foo}`. - At
docs/triggering.mdx:572,childTask2references a barebarvariable (return bar + 1) which is not in scope — the parameter ispayload: { bar: number }, so it should bereturn payload.bar + 1.
These same errors are repeated in the batch.triggerByTask section at lines 601 and 608. These are pre-existing issues not introduced by this PR, but they could mislead users copying the examples.
(Refers to lines 562-574)
Was this helpful? React with 👍 or 👎 to provide feedback.
To get access to the runs from
batch.triggerAndWaituseresults.runs