Skip to content

Commit 32f9f44

Browse files
dklibanclaude
andauthored
fix: always use upgrade/deps-auto branch with force push (#1159)
The agent was creating timestamped branch names on each run, leaving stale branches. Now always uses upgrade/deps-auto with --force push to update in place. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a44f331 commit 32f9f44

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.alcove/agents/upgrade-deps/AGENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ If tests fail:
286286

287287
## Phase 8: Commit and Push
288288

289-
1. Create a new branch using the name from the Workflow Context (the `branch` input):
289+
1. Create the branch `upgrade/deps-auto` (or switch to it if it exists):
290290
```
291-
git checkout -b $BRANCH
291+
git checkout -B upgrade/deps-auto
292292
```
293293

294294
2. Stage all changed files:
@@ -307,9 +307,9 @@ If tests fail:
307307
- Which patches were regenerated
308308
- Any code fixes made
309309

310-
4. Push the branch:
310+
4. Force push the branch (it may already exist from a previous run):
311311
```
312-
git push -u origin $BRANCH
312+
git push --force origin upgrade/deps-auto
313313
```
314314

315315
Do NOT create a PR — the pipeline's bridge action handles PR creation automatically after this step completes.

0 commit comments

Comments
 (0)