Versions 206 to 318
Lines 28–47 at 318 (were 28–41 at 206)
2828import { ignoredHere } from "./fetch.ts"; 2929import { loadIgnore, relativeTo } from "./folder.ts"; 3030import type { AskReply } from "./issues-wire.ts"; 31+import { isLocal, LOCAL_BASE } from "./local-store.ts"; 3132import { queuedLines, standing } from "./queue.ts"; 3233import { seenText, shortWhen } from "./times.ts"; 3435const q = (s: string): string => JSON.stringify(s); 3637/** The folder, with its Api pointed at the Issues Worker: the token goes only where tokenGoesTo allows, as for the avcs server. */ 37−function openIssues(env: Env): { root: string; config: Config; api: Api } {
38+export function openIssues(env: Env): { root: string; config: Config; api: Api } { 3839 const { root, config, api } = open(env); 40+ // A local project's issues are in its store, where the open server keeps them: at /issues. 41+ if (isLocal(config.server)) { 42+ api.issuesServer = `${LOCAL_BASE}/issues`; 43+ return { root, config, api }; 3945 // An explicit --server goes to that server's own Issues Worker: ABSO_ISSUES_SERVER doesn't redirect it. 4147 (env.server === undefined ? fromEnv(env.env, "ISSUES_SERVER") : undefined) ||