Harden argument handling for addon.update() .documentation() and .changelog()#201
Harden argument handling for addon.update() .documentation() and .changelog()#201lmagyar wants to merge 2 commits intohassio-addons:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughUpdated three addon helper functions to default their Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@lib/addons.sh`:
- Line 102: Calls to the Bash function bashio::var.equals are using invalid
parentheses syntax (e.g., bashio::var.equals()) which breaks parsing; locate
each invocation of bashio::var.equals (the occurrences checking "${slug}"
against 'self' and the other two similar checks) and remove the trailing
parentheses so they are called as bashio::var.equals "${slug}" 'self' (and
similarly for the other two calls), preserving spacing/quoting and any
surrounding conditional structure.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Proposed Changes
Based on Copilot's reviews (#187 (review)) to handle when callers pass
self. It makes sense to implement.Related Issues
Summary by CodeRabbit