Skip to content

refactor(skills): add pull-latest-base-before-pr to PR-creating skills (#192) - #193

Merged
gerchowl merged 1 commit into
devfrom
refactor/192-pull-latest-base-before-pr
Feb 24, 2026
Merged

gerchowl merged 1 commit into
devfrom
refactor/192-pull-latest-base-before-pr

Conversation

@gerchowl

@gerchowl gerchowl commented Feb 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a "pull latest base branch and merge" step to all PR-creating skills before creating or pushing a pull request. Ensures branches are up to date with origin/dev (or the target base) to avoid merge conflicts and stale code in PRs.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • pr_create: Step 1 now merges origin/<base_branch> after base is confirmed. Conflict handling: ask user to resolve manually.
  • pr_solve: Step 5 now merges origin/<base_branch> (from PR metadata) before first push. Conflict handling: ask user to resolve.
  • worktree_pr: Reordered steps so base branch is determined first (step 1), then step 2 ensures clean state including merge of origin/<base_branch> before push. Conflict handling: invoke worktree_ask to post question on issue.
  • worktree_solve-and-pr: Inherits merge step via worktree_pr (no direct changes).
  • solve-and-pr: Delegates to worktree_solve-and-pr (no changes needed).

Changelog Entry

No changelog needed — issue specifies "No changelog needed" for this refactor.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Ran just sync-workspace to sync skills to assets/workspace
  • Pre-commit hooks passed (branch-name, pymarkdown, trailing-whitespace, etc.)
  • Merged latest origin/dev before PR per the new workflow

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Refs: #192

@gerchowl gerchowl self-assigned this Feb 24, 2026
@gerchowl
gerchowl merged commit a47dbb0 into dev Feb 24, 2026
13 checks passed
@gerchowl
gerchowl deleted the refactor/192-pull-latest-base-before-pr branch February 24, 2026 17:49
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