diff --git a/src/tools/create-pr/index.ts b/src/tools/create-pr/index.ts index 70646b9c..487de9b3 100644 --- a/src/tools/create-pr/index.ts +++ b/src/tools/create-pr/index.ts @@ -75,6 +75,10 @@ export class CreatePr implements Tool { // 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; diff --git a/src/tools/explore-dir/index.ts b/src/tools/explore-dir/index.ts index 003a7407..25089bc7 100644 --- a/src/tools/explore-dir/index.ts +++ b/src/tools/explore-dir/index.ts @@ -149,5 +149,10 @@ export class ExploreDir implements Tool { 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}`); } }