自动创建或更新 GitHub Pull Request。 当需要为 Paddle 相关仓库创建 PR 时,优先使用本 skill。
git push -u origin HEAD。main 或 master,在继续之前先向用户确认是否真的要在该分支上直接提 PR。https://github.com/PaddlePaddle/Paddle/blob/develop/.github/PULL_REQUEST_TEMPLATE.md###)**作为各小节标题,生成 PR 描述时需与之保持一致。### PR Category
<!-- One of [ User Experience | Execute Infrastructure | Operator Mechanism | CINN | Custom Device | Performance Optimization | Distributed Strategy | Parameter Server | Communication Library | Auto Parallel | Inference | Environment Adaptation ] -->
### PR Types
<!-- One of [ New features | Bug fixes | Improvements | Performance | BC Breaking | Deprecations | Docs | Devs | Not User Facing | Security | Others ] -->
### Description
### 是否引起精度变化
<!-- one of the following [ 是 | 否 ]-->
###、##、#),若需分段小标题,最多使用四级标题(####)。在创建或更新 PR 之前,先运行 prek 对所有文件进行格式检查:
prek
如果 prek 自动修改了文件,需要将这些修改加入一个新的 commit,再推送:
git add .
git commit -m "🔧 chore: apply prek fixes"
git push
只有 prek 检查通过(没有额外修改)后,再继续创建或更新 PR。
如果 prek 报告无法自动修复的错误(例如类型检查或自定义 hook 失败),需根据错误信息手动修复后重新运行,直到全部检查通过,再继续创建或更新 PR。
gh 命令创建或更新 PR。[PR 大类] 简要说明
[CINN] avoid wrong fusion for xxx op[LargeTensor] fix xxx kernel[CodeStyle] update code stylefix bug / update code / test / temp / WIP 等。示例命令(根据实际情况替换标题和正文):
gh pr create --title "[xxx] xxx" --body "$(cat <<'EOF'
### PR Category
Operator Mechanism
### PR Types
New features
### Description
在这里说明该改动的动机和主要变化,可根据实际情况扩展,优先使用中文。
### 是否引起精度变化
否
EOF
)"
###),不要自定义新的顶层标题。####)。