Skip to content

Commit 82ad352

Browse files
authored
Rename continue-config input to continue-agent and update CLI version to latest (#8279)
1 parent 45ea0f2 commit 82ad352

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/continue-general-review.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
with:
2626
continue-api-key: ${{ secrets.CONTINUE_API_KEY }}
2727
continue-org: "continuedev"
28-
continue-config: "continuedev/review-bot"
28+
continue-config: "continuedev/empty-agent"

actions/general-review/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ inputs:
99
continue-org:
1010
description: "Organization for Continue config"
1111
required: true
12-
continue-config:
13-
description: 'Config path to use (e.g., "myorg/review-bot")'
12+
continue-agent:
13+
description: 'Agent path to use (e.g., "myorg/review-bot")'
1414
required: true
1515

1616
runs:
@@ -113,7 +113,7 @@ runs:
113113
- name: Install Continue CLI
114114
if: env.SHOULD_RUN == 'true'
115115
shell: bash
116-
run: npm install -g @continuedev/cli@1.4.30
116+
run: npm install -g @continuedev/cli@latest
117117

118118
- name: Post Initial Comment
119119
if: env.SHOULD_RUN == 'true'
@@ -227,7 +227,7 @@ runs:
227227
env:
228228
CONTINUE_API_KEY: ${{ inputs.continue-api-key }}
229229
CONTINUE_ORG: ${{ inputs.continue-org }}
230-
CONTINUE_CONFIG: ${{ inputs.continue-config }}
230+
CONTINUE_AGENT: ${{ inputs.continue-agent }}
231231
GITHUB_TOKEN: ${{ github.token }}
232232
run: |
233233
echo "Running Continue CLI with prompt:"
@@ -253,7 +253,7 @@ runs:
253253
exit 1
254254
fi
255255
256-
if [[ ! "$CONTINUE_CONFIG" =~ ^[a-zA-Z0-9_/-]+$ ]]; then
256+
if [[ ! "$CONTINUE_AGENT" =~ ^[a-zA-Z0-9_/-]+$ ]]; then
257257
echo "Error: Invalid config path. Must contain only alphanumeric characters, hyphens, underscores, and forward slashes."
258258
exit 1
259259
fi
@@ -273,7 +273,7 @@ runs:
273273
274274
# Run the CLI with validated config and error handling
275275
if [ "$SKIP_CLI" != "true" ]; then
276-
echo "Executing Continue CLI with config: $CONTINUE_ORG/$CONTINUE_CONFIG"
276+
echo "Executing Continue CLI with config: $CONTINUE_ORG/$CONTINUE_AGENT"
277277
278278
# Write prompt to temp file for headless mode
279279
PROMPT_FILE="/tmp/continue-review-$RANDOM.txt"
@@ -282,9 +282,9 @@ runs:
282282
echo "Prompt length: $(wc -c < "$PROMPT_FILE") characters"
283283
284284
# Use timeout to prevent hanging (360 seconds = 6 minutes)
285-
echo "Executing command: cn --config $CONTINUE_ORG/$CONTINUE_CONFIG -p @$PROMPT_FILE --allow Bash"
285+
echo "Executing command: cn --config $CONTINUE_ORG/$CONTINUE_AGENT -p @$PROMPT_FILE --allow Bash"
286286
287-
if timeout 360 cn --config "$CONTINUE_ORG/$CONTINUE_CONFIG" -p "@$PROMPT_FILE" --allow Bash > code_review_raw.md 2>cli_error.log; then
287+
if timeout 360 cn --config "$CONTINUE_ORG/$CONTINUE_AGENT" -p "@$PROMPT_FILE" --allow Bash > code_review_raw.md 2>cli_error.log; then
288288
echo "Continue CLI completed successfully"
289289
echo "Raw output length: $(wc -c < code_review_raw.md) characters"
290290

0 commit comments

Comments
 (0)