From 6eac8e98dc2aed9728f79b94d1e0692e47e16b1b Mon Sep 17 00:00:00 2001 From: LearningCircuit <185559241+LearningCircuit@users.noreply.github.com> Date: Mon, 6 Jul 2026 19:36:26 +0200 Subject: [PATCH] chore(ci): forward STRUCTURED_OUTPUT env var to ai-reviewer PR #23 made structured output optional and env-controlled in ai-reviewer.sh (STRUCTURED_OUTPUT defaults to 'true'; setting it to anything other than 'true' sends the request plain, for models without structured-output support). The workflow never passed STRUCTURED_OUTPUT through, so in CI it was stuck on the default with no way to toggle it. Wire it up like the other tunables so repo Actions Variable STRUCTURED_OUTPUT=false disables it. --- .github/workflows/ai-code-reviewer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ai-code-reviewer.yml b/.github/workflows/ai-code-reviewer.yml index 5221244..478ae21 100644 --- a/.github/workflows/ai-code-reviewer.yml +++ b/.github/workflows/ai-code-reviewer.yml @@ -39,6 +39,7 @@ jobs: AI_MAX_TOKENS: ${{ vars.AI_MAX_TOKENS || '64000' }} MAX_DIFF_SIZE: ${{ vars.MAX_DIFF_SIZE || '800000' }} EXCLUDE_FILE_PATTERNS: ${{ vars.EXCLUDE_FILE_PATTERNS || '*.lock,*.min.js,*.min.css,package-lock.json,yarn.lock' }} + STRUCTURED_OUTPUT: ${{ vars.STRUCTURED_OUTPUT || 'true' }} PR_NUMBER: ${{ github.event.pull_request.number }} REPO_FULL_NAME: ${{ github.repository }} FAIL_ON_REQUESTED_CHANGES: ${{ vars.FAIL_ON_REQUESTED_CHANGES || 'false' }}