forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Problem
At job completion, createPRForJob attempts to create a PR from feature/issue-NNN → dev. It fails with:
gh pr create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, No commits between dev and feature/issue-262, Head ref must be a branch
The feature branch exists but has no commits relative to dev. The individual task branches (e.g. opencode/fix-model-resolution-...) were pushed correctly, but mergeTaskBranchesToFeatureBranch did not merge them into the feature branch before createPRForJob ran.
Likely root causes to investigate
mergeTaskBranchesToFeatureBranchinpulse-verdicts.ts— does it actually merge the task branches locally and push? Does it fail silently?- Is the feature branch created correctly by
executeStartinjob-commands.ts? - Does
createPRForJobcheck whether the feature branch has commits before callinggh pr create? - Task branches that were committed via
taskctl override --commit-as-isor--skip— are they included in the merge?
Acceptance Criteria
- At job completion, all committed task branches are merged into the feature branch
-
createPRForJobonly runs if the feature branch has at least one commit ahead of dev - If merge or PR creation fails, a clear error is logged (no silent failure)
- Existing pipeline tests pass
- No
@ts-ignoreoras anyintroduced
Quality Gates
- TDD: tests first
-
bun run typecheck— 0 errors -
bun test— all pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels