refactor: remove deprecated GitLab wrapper module and related code

This commit is contained in:
Lauren ten Hoor
2026-02-09 22:43:01 +08:00
parent 4e10b171c1
commit 9bc0513198
6 changed files with 23 additions and 202 deletions

View File

@@ -4,6 +4,7 @@
*/
import fs from "node:fs/promises";
import path from "node:path";
import { homedir } from "node:os";
import { TIER_MIGRATION } from "./tiers.js";
export type WorkerState = {
@@ -229,3 +230,14 @@ export async function deactivateWorker(
issueId: null,
});
}
/**
* Resolve repo path from projects.json repo field (handles ~/ expansion).
* Uses os.homedir() for cross-platform home directory resolution.
*/
export function resolveRepoPath(repoField: string): string {
if (repoField.startsWith("~/")) {
return repoField.replace("~", homedir());
}
return repoField;
}