Skip to content

Commit 7a94bf1

Browse files
committed
fix(github): pass repositoryPath to GitHubIndexer in agent initialization
Fixes CI test failures where getCurrentRepository() was being called without a repository parameter, causing tests to fail in CI environment where .git folder or gh CLI may not be configured. **Root Cause:** GitHubAgent.initialize() was creating GitHubIndexer with only codeIndexer, missing the repositoryPath parameter. This caused the indexer to fall back to getCurrentRepository(), which fails in CI. **Fix:** Pass this.config.repositoryPath as second argument to GitHubIndexer constructor. **Testing:** - All 14 integration tests pass locally ✅ - Should fix CI failures in PR #24
1 parent 39e185a commit 7a94bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/subagents/src/github/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class GitHubAgent implements Agent {
3535
this.context = context;
3636
this.name = context.agentName;
3737

38-
this.indexer = new GitHubIndexer(this.config.codeIndexer);
38+
this.indexer = new GitHubIndexer(this.config.codeIndexer, this.config.repositoryPath);
3939

4040
context.logger.info('GitHub agent initialized', {
4141
capabilities: this.capabilities,

0 commit comments

Comments
 (0)