refactor: remove glabPath and ghPath options from providers and update related code

This commit is contained in:
Lauren ten Hoor
2026-02-09 22:33:46 +08:00
parent 7a29da4c83
commit 3a2e739a62
12 changed files with 40 additions and 75 deletions

View File

@@ -25,7 +25,6 @@ const STATE_LABELS = [
export type StateLabel = (typeof STATE_LABELS)[number];
type GlabOptions = {
glabPath?: string;
repoPath: string;
};
@@ -33,8 +32,7 @@ async function glab(
args: string[],
opts: GlabOptions,
): Promise<string> {
const bin = opts.glabPath ?? "glab";
const { stdout } = await execFileAsync(bin, args, {
const { stdout } = await execFileAsync("glab", args, {
cwd: opts.repoPath,
timeout: 30_000,
});