ワンクリックで
rebase-commit-push-pr
// Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch.
// Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch.
Use when building Farm locally from source, native bindings or Rust plugin artifacts are missing, or an example/E2E needs local core and plugin artifacts.
Comprehensive Farm build-tool reference for AI agents. Use when writing or reviewing farm.config.ts, adding/configuring plugins, troubleshooting builds, implementing SSR or library mode, using the JavaScript API, writing Farm JS/Rust plugins, or authoring custom plugins from scratch. Covers all config options, official plugins, CLI commands, key features, and plugin authoring sourced from website/docs.
Deep integration with Docusaurus for documentation site development. Configure projects, manage sidebars, versioning, i18n, develop plugins, and optimize builds for React-based documentation.
Run Farm verification with build-first constraints. For verify/acceptance, use npm run build only for core, rust plugins, and affected examples; do not run cargo check/clippy. Use when validating changes before merge or push.
Commit and push repository changes safely. Use when user asks to commit, push, or verify and push current changes.
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
| name | rebase-commit-push-pr |
| description | Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch. |
| license | MIT |
| compatibility | Requires git repository with origin remote and GitHub CLI (gh) for PR checks/creation. |
| metadata | {"author":"farm","version":"1.0"} |
Safely sync a working branch with origin/main, handle rebase conflicts, then publish and open a PR if needed.
Inspect branch and working tree
git branch --show-currentgit status --shortFetch and rebase onto main
git fetch origin maingit rebase origin/mainResolve rebase conflicts (if any)
git status --shortgit add <paths> or git rm <paths>.git rebase --continue.Commit user-requested local changes (only if needed)
git status --short is empty, skip commit.git add -A by default), then commit with a conventional message.Push branch
git pushgit push --force-with-lease only when user explicitly asked for rewritten-history push.Ensure a PR exists
gh pr list --head "$(git branch --show-current)" --json number,title,state,urlgh pr create --fill--fill fails due to missing metadata, provide explicit --title and --body.Report result
git reset --hard, git checkout --, or force push without explicit user approval.