From bea0bde998f1ef87b5d7faf3aff1e437737b5fd0 Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Thu, 22 Jan 2026 09:33:52 -0800 Subject: [PATCH 1/5] chore: bump to 1.5.0-dev.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61187a5..426b65c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grunnverk/github-tools", - "version": "1.5.0", + "version": "1.5.0-dev.0", "description": "GitHub API utilities for automation - PR management, issue tracking, workflow monitoring", "main": "dist/index.js", "type": "module", From 5f79749e9ce79b494528f73bcd903546275e194d Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Tue, 27 Jan 2026 17:26:38 -0800 Subject: [PATCH 2/5] Updated Version and Checking Context --- package.json | 2 +- src/github.ts | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 426b65c..7833ad3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grunnverk/github-tools", - "version": "1.5.0-dev.0", + "version": "1.5.1-dev.0", "description": "GitHub API utilities for automation - PR management, issue tracking, workflow monitoring", "main": "dist/index.js", "type": "module", diff --git a/src/github.ts b/src/github.ts index 0caa3e1..748f931 100644 --- a/src/github.ts +++ b/src/github.ts @@ -41,6 +41,19 @@ export const getCurrentBranchName = async (cwd?: string): Promise => { }; export const getRepoDetails = async (cwd?: string): Promise<{ owner: string; repo: string }> => { + const logger = getLogger(); + + // Check for context from environment (set by parallel execution) + if (process.env.KODRDRIV_CONTEXT_REPOSITORY_OWNER && process.env.KODRDRIV_CONTEXT_REPOSITORY_NAME) { + const owner = process.env.KODRDRIV_CONTEXT_REPOSITORY_OWNER; + const repo = process.env.KODRDRIV_CONTEXT_REPOSITORY_NAME; + + logger.debug(`Using repository details from execution context: ${owner}/${repo}`); + + return { owner, repo }; + } + + // Fall back to git detection (sequential mode) try { const { stdout } = await run('git remote get-url origin', { cwd, suppressErrorLogging: true }); const url = stdout.trim(); @@ -70,7 +83,6 @@ export const getRepoDetails = async (cwd?: string): Promise<{ owner: string; rep return { owner, repo }; } catch (error: any) { - const logger = getLogger(); const isNotGitRepo = error.message.includes('not a git repository'); const hasNoOrigin = error.message.includes('remote origin does not exist'); From 2722a53562ff6fcf1a874bed3efdbcbd4449410f Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Tue, 27 Jan 2026 17:41:53 -0800 Subject: [PATCH 3/5] chore(package): bump version to 1.5.1-dev.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7833ad3..a89da9d 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "clean": "rm -rf dist", - "precommit": "npm run clean && npm run build && npm run lint && npm run test", + "precommit": "npm run lint && npm run build && npm run test", "prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test" }, "keywords": [ From 42ae99818e519ff79790ea0ebeebae7eb8b2a540 Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Tue, 27 Jan 2026 18:04:30 -0800 Subject: [PATCH 4/5] chore(package): update package.json configuration and dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a89da9d..14a170a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "node": ">=24.0.0" }, "dependencies": { - "@grunnverk/git-tools": "^1.5.0", + "@grunnverk/git-tools": "^1.5.1", "@octokit/rest": "^22.0.0" }, "peerDependencies": { From e6e96b9239453ad9a3c5716ac8d13a2378359438 Mon Sep 17 00:00:00 2001 From: Tim O'Brien Date: Tue, 27 Jan 2026 18:05:03 -0800 Subject: [PATCH 5/5] chore(package): update package.json metadata and dependency constraints --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 14a170a..2ec1158 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grunnverk/github-tools", - "version": "1.5.1-dev.0", + "version": "1.5.1", "description": "GitHub API utilities for automation - PR management, issue tracking, workflow monitoring", "main": "dist/index.js", "type": "module",