feat(setup): support Git hook runtime initialization - #86
Conversation
Deploying rstack-cli with
|
| Latest commit: |
7b33b7a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3bb91475.rstack-cli.pages.dev |
| Branch Preview URL: | https://chenjiahan-feat-git-hook-run.rstack-cli.pages.dev |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughHook setup now supports disabling installation through 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
This PR gives generated Rstack Git hooks a controlled runtime initialization path for GUI clients and Node version managers. It loads
${XDG_CONFIG_HOME:-$HOME/.config}/rstack/hooks-init.sh, prepends the projectnode_modules/.bin, and supportsRSTACK_HOOKS=0/2for opt-out and tracing. Hook failures now report the hook name, exit code, and PATH details for missing commands, whilers setupalso respects the opt-out.