diff --git a/.github/workflows/code-review.yaml b/.github/workflows/code-review.yaml index a31aa94..e678994 100644 --- a/.github/workflows/code-review.yaml +++ b/.github/workflows/code-review.yaml @@ -13,7 +13,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }} - azure_openai_base_url: ${{ variables.AZURE_OPENAI_BASE_URL }} - azure_openai_deployment_name: ${{ variables.AZURE_OPENAI_DEPLOYMENT_NAME }} + azure_openai_base_url: ${{ vars.AZURE_OPENAI_BASE_URL }} + azure_openai_deployment_name: ${{ vars.AZURE_OPENAI_DEPLOYMENT_NAME }} openai_model_name: "gpt-3.5-turbo" - #azure_openai_api_version: ${{ variables.AZURE_OPENAI_API_VERSION }} + #azure_openai_api_version: ${{ vars.AZURE_OPENAI_API_VERSION }} diff --git a/src/ts/test/index.ts b/src/ts/test/index.ts index e946af9..2938e1b 100644 --- a/src/ts/test/index.ts +++ b/src/ts/test/index.ts @@ -1 +1,24 @@ -console.log("Hello, world"); \ No newline at end of file +console.log("Hello, world"); + +// This file intentionally contains bad TypeScript code for LLM code review testing + +function add(a, b) { + return a + b; +} + +let result = add("5", 10); + +console.log("Result is: " + result); + +const obj = {}; +obj = { name: "test" }; + +if ((result = 15)) { + console.log("Fifteen!"); +} + +let unusedVar: number; + +function doNothing() { + // does nothing +}