Files
u-claw/.github/PULL_REQUEST_TEMPLATE.md
hfshfg b0a9cb3f58 fix(install): npm-cli.js path + CONTRIBUTING/PR template
install.sh: bundled Node 的 INSTALL_NPM 之前指向 bin/npm shell wrapper,
通过 \"node npm\" 调用会失败。改为 lib/node_modules/npm/bin/npm-cli.js,
并加 run_npm() 帮助函数区分系统 Node(用 npm 可执行)和 bundled Node。

install.ps1: 系统 Node 场景下 npm-cli.js 路径推导脆弱。改为按候选路径
依次试探,找不到则直接退到 npm.cmd。

新增 CONTRIBUTING.md + .github/PULL_REQUEST_TEMPLATE.md,规范 PR 流程,
减少空白/无说明 PR(对应 issue PR #36)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 15:41:42 +08:00

52 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
感谢贡献 U-Claw请按以下模板填写方便维护者审阅。
空白或仅有标题的 PR 通常会被关闭,请勿提交无说明的改动。
-->
## 改动类型 / Type
<!-- 勾选适用的([x] -->
- [ ] 🐛 Bug 修复
- [ ] ✨ 新功能
- [ ] 📝 文档/README
- [ ] 🔧 脚本/构建portable, install, bootable, u-claw-app
- [ ] 🎨 技能 (skills-cn)
- [ ] ♻️ 重构(不改变行为)
- [ ] 🧪 测试
## 改动了什么 / What
<!-- 一两句话说清楚这个 PR 做了什么。不要复制 git diff。 -->
## 为什么 / Why
<!-- 哪个 issue / 哪个使用场景驱动了这次改动?关联 issue: #xxx -->
## 测试方式 / How to verify
<!--
告诉维护者怎么验证。比如:
- 在 macOS Apple Silicon 上跑 `bash install/install.sh`,安装成功
- 双击 `portable/Mac-Start.command`,能正常打开 dashboard
- Windows 11 PowerShell 跑 `irm https://u-claw.org/install.ps1 | iex`,安装成功
-->
## 影响范围 / Scope
<!-- 勾选受影响的模块 -->
- [ ] portable/ (便携 USB)
- [ ] u-claw-app/ (Electron 桌面)
- [ ] bootable/ (Linux 可启动 U 盘)
- [ ] install/ (一键安装脚本)
- [ ] skills-cn/ (中国本地化技能)
- [ ] 仅文档
## 自检 / Checklist
- [ ] 我已经在本地实际跑过相关脚本/功能
- [ ] 没有提交 `node_modules/``app/``data/` 等运行时产物
- [ ] 没有把任何 API Key、Token 写进文件
- [ ] commit message 能说清楚改了什么