From 82ad3527af892fe3dd0d66fc587f198bafca5189 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Wed, 15 Oct 2025 22:39:23 -0700 Subject: [PATCH] Rename continue-config input to continue-agent and update CLI version to latest (#8279) --- .github/workflows/continue-general-review.yaml | 2 +- actions/general-review/action.yml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continue-general-review.yaml b/.github/workflows/continue-general-review.yaml index cc0f2c603..49f3463de 100644 --- a/.github/workflows/continue-general-review.yaml +++ b/.github/workflows/continue-general-review.yaml @@ -25,4 +25,4 @@ jobs: with: continue-api-key: ${{ secrets.CONTINUE_API_KEY }} continue-org: "continuedev" - continue-config: "continuedev/review-bot" + continue-config: "continuedev/empty-agent" diff --git a/actions/general-review/action.yml b/actions/general-review/action.yml index 2bc4b30ad..72e34a217 100644 --- a/actions/general-review/action.yml +++ b/actions/general-review/action.yml @@ -9,8 +9,8 @@ inputs: continue-org: description: "Organization for Continue config" required: true - continue-config: - description: 'Config path to use (e.g., "myorg/review-bot")' + continue-agent: + description: 'Agent path to use (e.g., "myorg/review-bot")' required: true runs: @@ -113,7 +113,7 @@ runs: - name: Install Continue CLI if: env.SHOULD_RUN == 'true' shell: bash - run: npm install -g @continuedev/cli@1.4.30 + run: npm install -g @continuedev/cli@latest - name: Post Initial Comment if: env.SHOULD_RUN == 'true' @@ -227,7 +227,7 @@ runs: env: CONTINUE_API_KEY: ${{ inputs.continue-api-key }} CONTINUE_ORG: ${{ inputs.continue-org }} - CONTINUE_CONFIG: ${{ inputs.continue-config }} + CONTINUE_AGENT: ${{ inputs.continue-agent }} GITHUB_TOKEN: ${{ github.token }} run: | echo "Running Continue CLI with prompt:" @@ -253,7 +253,7 @@ runs: exit 1 fi - if [[ ! "$CONTINUE_CONFIG" =~ ^[a-zA-Z0-9_/-]+$ ]]; then + if [[ ! "$CONTINUE_AGENT" =~ ^[a-zA-Z0-9_/-]+$ ]]; then echo "Error: Invalid config path. Must contain only alphanumeric characters, hyphens, underscores, and forward slashes." exit 1 fi @@ -273,7 +273,7 @@ runs: # Run the CLI with validated config and error handling if [ "$SKIP_CLI" != "true" ]; then - echo "Executing Continue CLI with config: $CONTINUE_ORG/$CONTINUE_CONFIG" + echo "Executing Continue CLI with config: $CONTINUE_ORG/$CONTINUE_AGENT" # Write prompt to temp file for headless mode PROMPT_FILE="/tmp/continue-review-$RANDOM.txt" @@ -282,9 +282,9 @@ runs: echo "Prompt length: $(wc -c < "$PROMPT_FILE") characters" # Use timeout to prevent hanging (360 seconds = 6 minutes) - echo "Executing command: cn --config $CONTINUE_ORG/$CONTINUE_CONFIG -p @$PROMPT_FILE --allow Bash" + echo "Executing command: cn --config $CONTINUE_ORG/$CONTINUE_AGENT -p @$PROMPT_FILE --allow Bash" - if timeout 360 cn --config "$CONTINUE_ORG/$CONTINUE_CONFIG" -p "@$PROMPT_FILE" --allow Bash > code_review_raw.md 2>cli_error.log; then + if timeout 360 cn --config "$CONTINUE_ORG/$CONTINUE_AGENT" -p "@$PROMPT_FILE" --allow Bash > code_review_raw.md 2>cli_error.log; then echo "Continue CLI completed successfully" echo "Raw output length: $(wc -c < code_review_raw.md) characters"