docs: toolbox: toolbox-command-guide: new guide#56
docs: toolbox: toolbox-command-guide: new guide#56kpouget wants to merge 1 commit intoopenshift-psap:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughA comprehensive new documentation guide for the FORGE Toolbox Command Writing is added, covering architecture, design principles, DSL usage, I/O guidelines, artifact management, security practices, templating, troubleshooting, examples, and antipatterns. No code changes are made. ChangesFORGE Toolbox Command Writing Guide
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/toolbox/toolbox-command-guide.md`:
- Around line 766-769: The "Getting Help" lines use filesystem-style paths that
may not resolve from docs/toolbox/toolbox-command-guide.md; update the three
references (`specs/008-toolbox-dsl/`, `projects/*/toolbox/`, and
`../topsail/projects/*/toolbox/`) to repo-root-relative links or full repo URLs
so they render correctly (for example change to /specs/008-toolbox-dsl/,
/projects/<project>/toolbox/, or the full GitHub/Docs URL for the TOPSAIL
patterns), and verify the links work when viewing the rendered Markdown.
- Around line 336-347: The example claims sensitive parameters won't be logged
but never sets log_command=False; update the task decorator for
handle_sensitive_data to explicitly disable command logging by adding the
log_command=False argument to the `@task` decorator (i.e., use
`@task`(log_command=False) on the handle_sensitive_data function) and keep the
rest of the function reading args.secret_file so the snippet clearly
demonstrates the intended behavior.
- Around line 329-331: The example shows unsafe shell interpolation in the
shell.run call (f"cat {args.secret_file} | oc create secret generic mysecret
--from-file=-"); change it to a safe invocation that avoids interpolating
args.secret_file into a shell string—use a parameterized API or pass argv as a
list to shell.run (or use subprocess.run with args list), or avoid the pipe
entirely by calling oc create secret with --from-file pointing directly to
args.secret_file; reference the shell.run call and args.secret_file when making
the replacement.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: eb9b172d-fbf5-4a6c-a9e1-b1f8c8c375f0
📒 Files selected for processing (1)
docs/toolbox/toolbox-command-guide.md
Summary by CodeRabbit