diff options
| author | soryu <soryu@soryu.co> | 2026-02-19 23:40:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-19 23:40:07 +0000 |
| commit | ed84d7ec5ece272a2cb8dabd36cbd6074df0887e (patch) | |
| tree | ad8bd85b44c577e656274bc846b0051837907038 /makima/src/orchestration/directive.rs | |
| parent | 28b191cc0b0e69b864191673df9c141730c93e4f (diff) | |
| download | soryu-ed84d7ec5ece272a2cb8dabd36cbd6074df0887e.tar.gz soryu-ed84d7ec5ece272a2cb8dabd36cbd6074df0887e.zip | |
feat: add git/gh auth checks, git fetch on worktree, fix contracts overflow (#72)
* feat: soryu-co/soryu - makima: Fix contracts page overflow - constrain layout to viewport height
* feat: soryu-co/soryu - makima: Add git fetch to create_worktree and improve completion prompt merge conflict handling
* WIP: heartbeat checkpoint
Diffstat (limited to 'makima/src/orchestration/directive.rs')
| -rw-r--r-- | makima/src/orchestration/directive.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/makima/src/orchestration/directive.rs b/makima/src/orchestration/directive.rs index af6b18c..df44ee4 100644 --- a/makima/src/orchestration/directive.rs +++ b/makima/src/orchestration/directive.rs @@ -1367,6 +1367,11 @@ git checkout -b "$NEW_BRANCH" origin/{base_branch} git push -u origin "$NEW_BRANCH" ``` +For each step branch merge above, if a merge fails with conflicts: +1. First try: `git merge --abort` then retry with `git merge <the-failing-branch> -X theirs --no-edit` +2. If that also fails, manually resolve the conflicts, `git add .`, and `git commit --no-edit` +3. Continue with remaining merges + 3. Generate a descriptive PR title and create a new PR: Based on the steps completed above, generate a descriptive PR title that summarizes the actual changes (not just the directive name "{title}"). The title should: @@ -1408,7 +1413,10 @@ git merge origin/{base_branch} --no-edit git push origin {directive_branch} ``` -Already-merged branches will be a no-op. If there are merge conflicts, resolve them sensibly. +Already-merged branches will be a no-op. If a merge fails with conflicts: +1. First try: `git merge --abort` then retry with `git merge <the-failing-branch> -X theirs --no-edit` +2. If that also fails, manually resolve the conflicts, `git add .`, and `git commit --no-edit` +3. Continue with remaining merges "#, title = directive.title, goal = directive.goal, @@ -1464,7 +1472,10 @@ makima directive update --pr-url "https://github.com/..." ``` Replace the URL with the actual PR URL from the `gh pr create` output. This step is CRITICAL — the PR will not be tracked by the directive system without it. -If there are merge conflicts, resolve them sensibly before pushing. +For each step branch merge, if a merge fails with conflicts: +1. First try: `git merge --abort` then retry with `git merge <the-failing-branch> -X theirs --no-edit` +2. If that also fails, manually resolve the conflicts, `git add .`, and `git commit --no-edit` +3. Continue with remaining merges "#, title = directive.title, goal = directive.goal, |
