You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea2bcfe
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/advanced.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ OpenCode service must be running for polling to work.
28
28
| --- | --- |
29
29
|`ownerDirectory`| Absolute path of the checkout that owns automation. Worker worktrees do not activate another scheduler. |
30
30
|`stateDirectory`| Shared location for queues, locks, and worktrees. Keep it consistent across components and restarts. |
31
-
|`repositories`| Repositories with existing local checkouts, base branches, allowed authors, and checks. |
31
+
|`repositories`| Repositories with existing local checkouts, default base branches, allowed authors, and checks. A natural-language request can override the base before work starts. |
32
32
|`allowedAuthors`| GitHub users authorized to request work and approve merging. Merging also requires repository write access. |
33
33
|`checks`| Arrays of executable arguments, e.g. `[["npm", "test"]]`. `[]` skips automated tests and reports that in the PR. No implicit shell. |
34
34
|`routes`| Maps full mentions to agents and models available in OpenCode. |
thrownewError("Base branch selection was not supported by the user's text; selection will retry");
19
37
}
20
-
returnselected;
38
+
if(!BranchName.safeParse(decision.branch).success)return{kind: "question",question: `The requested branch name ${JSON.stringify(decision.branch)} is not valid. Which existing branch on origin should I use as the base?`};
if(task.analysis&&(latest.body!==task.issue.body||latest.title!==task.issue.title||JSON.stringify(route)!==JSON.stringify(task.route)))thrownewBlocked("Issue or route changed after analysis; review before restarting");
choice={kind: "question",question: `Branch ${JSON.stringify(choice.branch)} does not exist on origin. Which existing branch should I use as the base? You can reply in your own words.`};
constbody=`Question (${question.id})\n\n${question.text}\n\n${question.permission ? `Reply with /allow ${question.id} or /deny ${question.id}.` : "Reply in this issue to continue. Only configured authors can answer."}`;
0 commit comments