Skip to content

Commit

Permalink
fix: rever back the LLM code
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Jan 11, 2025
1 parent e6e8619 commit bf9d10b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/create-pr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export class CreatePr implements Tool<PullRequestResult> {
// Push to remote using token
const currentBranch = (await this._terminal.runCommand("git rev-parse --abbrev-ref HEAD")).trim();
this._context.logger.info(`Pushing branch ${currentBranch} to remote`);
//Print the current pwd
const val = await this._terminal.runCommand("pwd");
console.log(val);
this._context.logger.info(`Current working directory: ${val}`);
const token = this._context.env.PERSONAL_AGENT_PAT_CLASSIC;
const repo = this._context.payload.repository.name;
const owner = this._context.payload.repository.owner.login;
Expand Down
5 changes: 5 additions & 0 deletions src/tools/explore-dir/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,10 @@ export class ExploreDir implements Tool<DirectoryExploreResult> {
const token = this._context.env.PERSONAL_AGENT_PAT_CLASSIC;
const command = `git clone https://x-access-token:${token}@github.com/${owner}/${repo}.git ${this._currentDir} && cd ${this._currentDir} && git checkout -b issue-${issueNumber}`;
await this._shellInterface.runCommand(command);

//Print the current pwd
const val = await this._shellInterface.runCommand("pwd");
console.log(val);
this._context.logger.info(`Current working directory: ${val}`);
}
}

0 comments on commit bf9d10b

Please sign in to comment.