Skip to main content

rebase-pr

Provides a structured process for rebasing pull requests use when asked to "rebase a PR".

跳到安装

来源信息

仓库
redhat-et/ProtoBot
最近来源活动
2026年8月31日 17:44
检测到的 SKILL.md 语言
英语
星标
5
分支
5

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
rebase-pr
description
Provides a structured process for rebasing pull requests use when asked to "rebase a PR".
# Rebasing a Pull Request When asked to "rebase a PR", follow this structured process: - Check out the branch associated with the pull request into a local worktree under `.worktrees/`, as required by the repository workflow. - Rebase the branch on the latest `upstream/main` - Resolve any merge conflicts that arise during the rebase process - Ensure all pre-commit checks pass before creating any commit for conflict resolution, and ensure all tests pass locally after the rebase - Before pushing, verify that the expected remote branch state still points to the commit recorded before the rebase; stop if the remote branch has changed - Push the rebased branch back to the remote repository with `git push --force-with-lease`, which will update the pull request; stop if the lease check fails and do not fall back to an unqualified force push - Monitor CI checks and address any issues that arise after pushing the rebased branch - Clean up the local worktree after the rebase process is complete
在 GitHub 查看