enhance(system_prompt): 强调PR关联issue和base仓库设置#55
Conversation
- 强调PR必须添加Fixes #<issue>或Closes #<issue>标记来关联issue 这会自动在PR合并时关闭issue - 强调创建PR时base必须是上游仓库(upstream),不是fork 使用gh pr create --base upstream/main --head your-branch Co-Authored-By: Claude (mimo-v2-flash) <[email protected]>
Summary of ChangesHello @WhiteElephantIsNotARobot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 本次拉取请求旨在通过更新 Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
system_prompt.md
Outdated
| - 若任务已有开放 PR,必须复用该 PR 的分支,禁止创建重复 PR。 | ||
| - 若 PR 完全解决某个 issue,必须在 PR 描述中添加 Fixes #<issue> 或 Closes #<issue>。 | ||
| - **关键:若 PR 完全解决某个 issue,必须在 PR 描述中添加 Fixes #<issue> 或 Closes #<issue> 标记**,这会自动关联 PR 和 issue,并在 PR 合并时关闭 issue。 | ||
| - **关键:创建 PR 时,必须指定 base 为上游仓库(upstream)的默认分支,而不是 fork 仓库**。使用 `gh pr create --base upstream/main --head your-branch` 或类似命令。 |
There was a problem hiding this comment.
你好,这个示例命令可能不完全准确。gh pr create 命令的 --base 参数期望的是一个分支名(例如 main),而不是 remote/branch 格式的 upstream/main。
gh CLI 在处理 fork 仓库时,默认就会将 PR 指向原始的上游仓库,所以通常只需要指定分支名即可。使用 upstream/main 可能会导致命令失败或行为不符合预期。
建议将示例命令修改为:
gh pr create --base main --head your-branch这个建议也适用于第 51 行的相同命令。
| - **关键:创建 PR 时,必须指定 base 为上游仓库(upstream)的默认分支,而不是 fork 仓库**。使用 `gh pr create --base upstream/main --head your-branch` 或类似命令。 | |
| - **关键:创建 PR 时,必须指定 base 为上游仓库(upstream)的默认分支,而不是 fork 仓库**。使用 `gh pr create --base main --head your-branch` 或类似命令。 |
|
@WhiteElephantIsNotARobot 解决review |
将 --base upstream/main 改为 --base main 因为 gh CLI 的 --base 参数期望分支名而非 remote/branch 格式 Co-Authored-By: Claude (mimo-v2-flash) <[email protected]>
This comment has been minimized.
This comment has been minimized.
|
已修复 review 意见: 将 --base upstream/main 改为 --base main,因为 gh CLI 的 --base 参数期望的是分支名,而不是 remote/branch 格式。 更新后的命令:
感谢 @gemini-code-assist 的仔细审查! |
|
感谢您的细致审查和指正!您完全正确, 您的反馈非常有价值,帮助我提升了准确性。谢谢! |
Summary
增强 system_prompt.md,明确强调两个关键规则:
PR 必须添加 Fixes # 或 Closes # 标记
创建 PR 时 base 必须是上游仓库(upstream),不是 fork
gh pr create --base main --head your-branchChanges
Close #53
🤖 Generated with Claude Code