Skip to content

Commit

Permalink
fix(temp): removed llm code and added a manual file and pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Jan 11, 2025
1 parent 95d4f06 commit 96950d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ jobs:
PLUGIN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
USERNAME: ${{ github.actor }}
EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
7 changes: 5 additions & 2 deletions src/tools/create-pr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ export class CreatePr implements Tool<PullRequestResult> {
}

try {
//Setup git config
this._context.logger.info("Setting up git config");
await this._terminal.runCommand(`git config --global user.email ${this._context.env.EMAIL}`);
await this._terminal.runCommand(`git config --global user.name ${this._context.env.USERNAME}`);

// Stage all changes
this._context.logger.info("Staging changes");
const res = await this._terminal.runCommand("ls -la");
this._context.logger.info("ls -la:", { res });
await this._terminal.runCommand("git add .");

// Get status to log what's being committed
Expand Down
2 changes: 2 additions & 0 deletions src/types/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const envSchema = T.Object({
PERSONAL_AGENT_PAT_CLASSIC: T.String(),
OPENROUTER_API_KEY: T.String(),
OPENAI_API_KEY: T.String(),
USERNAME: T.String(),
EMAIL: T.String(),
});

export const envValidator = new StandardValidator(envSchema);
Expand Down

0 comments on commit 96950d3

Please sign in to comment.