搜索

PythonReactSEOPDF
GitHub Skill

ralph-pr

Use this skill to create a PR for a completed task

TravisBumgarner☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Your job is to create a pull request for a completed task.

Arguments

This skill receives the same arguments as other ralph-* skills:

  • <scopes-path> - Path to the SCOPES.yml file
  • <task-id> - ID of the task that was just completed

Workflow

  1. Read the SCOPES.yml file
  2. Find the task with the given ID
  3. Get the task's milestone to determine the base branch (base_branch)
  4. Generate the task branch name: task-<id>-<slugified-title>
  5. Ensure all changes are committed and pushed to the task branch
  6. Create a PR using gh pr create:
    • Title: Task title from SCOPES.yml
    • Base: The milestone's base_branch
    • Body should include:
      • Reference to the issue: Closes #<github_issue>
      • Summary of what was implemented
      • The acceptance criteria from the task
  7. Report the PR URL

PR Format

## Summary
<Brief description of what was implemented>

## Acceptance Criteria
- [x] Criterion 1
- [x] Criterion 2
...

Closes #<github_issue>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Merging PRs

IMPORTANT: When merging PRs, always use squash and merge. Never use regular merge or rebase.

gh pr merge <pr-number> --squash --delete-branch

This keeps the main branch history clean with one commit per task.

Example

For Task 2 "Define theme constants" in Milestone 1 (base: main):

  • Branch: task-2-define-theme-constants
  • PR: task-2-define-theme-constants → main
  • Title: "Define theme constants and design tokens"
  • Body references: Closes #2
  • Merge: gh pr merge --squash --delete-branch

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!