fix: add bash-compatible short aliases to output.sh - #359
Conversation
Retry semantic-release to create v1.52.0 release after v1.51.0 conflict. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add direct function aliases (info, success, warning, error, fatal) to support bash scripts that call these functions without the output:: namespace prefix. This fixes compatibility issues with bash scripts like setup-team-protection.sh that were failing with 'command not found' errors when calling info(), success(), etc. The output.sh library is a zsh script but needs to support both zsh and bash callers. These aliases ensure bash scripts can use the same simple function names without modification. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughFive new bash function aliases are added to Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 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
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 |
PR Review: bash互換のショートエイリアス追加✅ 総合評価このPRは高品質であり、マージを推奨します。すべてのCIチェックが成功しており、明確な問題を解決する実用的な変更です。 📋 レビュー詳細1. コード品質とベストプラクティス ✅良い点:
コンテキスト:
2. 潜在的なバグや問題
|
| 項目 | 評価 | 備考 |
|---|---|---|
| コード品質 | ⭐⭐⭐⭐⭐ | シンプルで明確 |
| バグリスク | ⭐⭐⭐⭐☆ | 軽微な名前空間懸念のみ |
| パフォーマンス | ⭐⭐⭐⭐⭐ | 影響なし |
| セキュリティ | ⭐⭐⭐⭐⭐ | 問題なし |
| テストカバレッジ | ⭐⭐⭐⭐☆ | 既存テストで基本的にカバー |
最終推奨: ✅ 承認 & マージ推奨
この変更は実際の問題を解決し、既存のコードパターンに従い、すべての品質ゲートを通過しています。
🤖 レビュー実施: Claude Sonnet 4.5 via Claude Code
📋 CLAUDE.md準拠チェック完了
cloud_provisioning PR #359 と同様に、ブランチ種別ごとのデフォルト保護を適用: - main: enforce_admins=true, reviews=0, code_owner_reviews=false - pre-production/production: enforce_admins=false, reviews=1, code_owner_reviews=true --uniform オプションで従来の全ブランチ同一設定に切替可能 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Add direct function aliases (info, success, warning, error, fatal) to support bash scripts that call these functions without the output:: namespace prefix.
Problem
The
setup-team-protection.shscript was failing with "command not found" errors when callinginfo(),success(),warning(), anderror()functions because:script/lib/output.shis a zsh script that defines functions with theoutput::namespace prefixsetup-team-protection.shwere calling these functions without the namespace prefixSolution
Add bash-compatible short aliases at the end of output.sh:
These aliases ensure bash scripts can use the same simple function names without modification.
Testing
Tested with
setup-team-protection.sh --dry-run- now successfully runs without "command not found" errors.Impact
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.