Skip to content

feat(create-pr): split verify and sync workflows - #489

Merged
baleen37 merged 1 commit into
mainfrom
wip/create-pr-simplify
Feb 13, 2026
Merged

feat(create-pr): split verify and sync workflows#489
baleen37 merged 1 commit into
mainfrom
wip/create-pr-simplify

Conversation

@baleen37

@baleen37 baleen37 commented Feb 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • simplify me:create-pr skill for token-efficient, minimal workflow documentation
  • keep verify-pr-status.sh read-only and move branch update to new sync-with-base.sh
  • align tests with the new flow and add executable checks for sync script

Technical details

  • plugins/me/skills/create-pr/SKILL.md
    • reduce repeated guidance into a concise minimal workflow and explicit status handling
    • keep stop conditions and minimal PR body requirements
  • plugins/me/skills/create-pr/scripts/verify-pr-status.sh
    • remove state-changing git operations (merge/push)
    • on BEHIND, return actionable guidance to run sync script and re-verify
  • plugins/me/skills/create-pr/scripts/sync-with-base.sh
    • new script to perform fetch + merge + push when sync is explicitly needed
  • plugins/me/skills/create-pr/scripts/check-conflicts.sh
    • simplify output and base-branch resolution logic
  • tests updated:
    • tests/skills/test_create_pr_verify_status.bats
    • tests/skills/test_check_conflicts.bats
    • plugins/me/tests/me-specific.bats

Test plan

  • bun run bats tests/skills/test_check_conflicts.bats tests/skills/test_create_pr_verify_status.bats plugins/me/tests/me-specific.bats
  • pre-push hook full suite passed during git push -u origin HEAD

Notes

  • Branch: wip/create-pr-simplify
  • Requested workflow exception was approved when working tree was clean, so PR was created from existing commit.

Summary by CodeRabbit

  • New Features

    • Added branch synchronization functionality to align with the repository's base branch.
  • Documentation

    • Streamlined pull request workflow documentation with simplified guidance and minimal steps.
  • Refactor

    • Simplified conflict detection output and status verification process for improved clarity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@baleen37
baleen37 enabled auto-merge (squash) February 13, 2026 15:15
@coderabbitai

coderabbitai Bot commented Feb 13, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The create-pr skill is refactored to streamline its workflow. The documentation is condensed to focus on essential steps. Three scripts are updated: check-conflicts.sh removes color output and simplifies messaging, verify-pr-status.sh is rewritten as a simplified state machine, and a new sync-with-base.sh script is introduced for branch synchronization. Tests are updated to reflect these changes.

Changes

Cohort / File(s) Summary
Documentation
plugins/me/skills/create-pr/SKILL.md
Rewrites PR workflow from comprehensive guide to streamlined narrative; removes red-flag and common-mistake sections; introduces minimal workflow sequence with simplified status handling and stop conditions.
Conflict Detection
plugins/me/skills/create-pr/scripts/check-conflicts.sh, tests/skills/test_check_conflicts.bats
Simplifies check-conflicts.sh output from colorized to plain text; consolidates error handling and conflict reporting; adds test to ensure no color escape sequences are printed.
Branch Synchronization
plugins/me/skills/create-pr/scripts/sync-with-base.sh
Introduces new script to synchronize current branch with repository's default/base branch; handles base determination, fetch, merge, and push operations with standardized exit codes.
Status Verification
plugins/me/skills/create-pr/scripts/verify-pr-status.sh, tests/skills/test_create_pr_verify_status.bats
Rewrites verify-pr-status.sh from retry-based loop to read-only state machine; removes conflict/merge handling; consolidates status checks; updates test suite to reference new VERIFY_SCRIPT and SYNC_SCRIPT variables.
Integration Tests
plugins/me/tests/me-specific.bats
Adds validation for new sync-with-base.sh script presence and executability; updates assertion to check for BLOCKED|UNSTABLE condition instead of MAX_RETRIES.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Poem

🐰 A rabbit hops through cleaner code,
No colors clutter up the road,
New sync-with-base makes branches dance,
Verify flows with streamlined chance,
The workflow's lean, the path is clear! 🎯

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch wip/create-pr-simplify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@baleen37
baleen37 merged commit aa6942f into main Feb 13, 2026
4 of 5 checks passed
@baleen37
baleen37 deleted the wip/create-pr-simplify branch February 13, 2026 15:16
baleen-release-app Bot pushed a commit that referenced this pull request Feb 13, 2026
# [5.22.0](v5.21.2...v5.22.0) (2026-02-13)

### Features

* **create-pr:** split verify and sync workflows ([#489](#489)) ([aa6942f](aa6942f))
baleen37 pushed a commit to baleen37/memmem that referenced this pull request Feb 15, 2026
# [5.22.0](baleen37/bstack@v5.21.2...v5.22.0) (2026-02-13)

### Features

* **create-pr:** split verify and sync workflows ([#489](baleen37/bstack#489)) ([aa6942f](baleen37/bstack@aa6942f))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant