代码 PR 会执行仓库控制的脚本及全部测试
原文依据:1 处技能直接要求运行 ./script/presubmit,并说明它会执行所有单元、文档和集成测试。所提供证据中没有该脚本或测试实现,因此无法核实具体执行内容。
仓库脚本、构建步骤或测试会以代理的本地权限运行;若当前分支不可信,它们可能读取可访问文件和凭据、访问网络或修改工作区。
该指令仅在 PR 含代码变更时生效,并且运行预提交检查符合创建 PR 的正常目的;不过它确实要求执行仓库内的可执行脚本,随后运行格式化、静态检查和全部测试。测试和脚本会以用户权限执行仓库代码,而本证据未提供其实现,因此无法判断实际副作用。用户可要求先查看脚本及测试配置,或限制为明确批准的检查。
### 2. Run presubmit checks for code changesIf the PR includes code changes, run the relevant presubmit checks before opening or updating it:```bash./script/presubmit````./script/presubmit` runs:- `cargo fmt` - Code formatting- `cargo clippy` - Linting with all warnings as errors- All tests (unit, doc, and integration)If the PR is documentation-only (for example, skills, markdown, or other non-code content), you do not need to run `cargo fmt` or `cargo clippy` just to open or update the PR.