File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Test Continue Agent App Integration
1+ name : Test Continue Agent Actions
22on :
33 pull_request :
44 types : [opened, ready_for_review]
@@ -12,6 +12,20 @@ permissions:
1212 issues : write
1313
1414jobs :
15+ # Test the new simplified base-review action
16+ test-base-review :
17+ name : Test Base Review (Simplified)
18+ runs-on : ubuntu-latest
19+ timeout-minutes : 10
20+ steps :
21+ - name : Checkout Repository
22+ uses : actions/checkout@v4
23+
24+ - name : Base Review
25+ uses : ./actions/base-review
26+ with :
27+ continue-api-key : ${{ secrets.CONTINUE_API_KEY }}
28+
1529 # Test with GitHub App (default behavior)
1630 test-with-app :
1731 name : Test with Continue Agent App
Original file line number Diff line number Diff line change 1+ name : " Continue Base Review"
2+ description : " Zero-config AI code review - just add this action and optionally an API key"
3+ author : " Continue Dev, Inc."
4+
5+ inputs :
6+ continue-api-key :
7+ description : " API key for Continue service (optional if using default)"
8+ required : false
9+ default : " "
10+
11+ runs :
12+ using : " composite"
13+ steps :
14+ - name : Check trigger
15+ id : check
16+ shell : bash
17+ run : |
18+ # Determine if we should run based on event type
19+ SHOULD_RUN="false"
20+ REVIEW_TYPE="general"
21+
22+ if [ "${{ github.event_name }}" = "pull_request" ]; then
23+ if [ "${{ github.event.pull_request.draft }}" != "true" ]; then
24+ SHOULD_RUN="true"
25+ fi
26+ elif [ "${{ github.event_name }}" = "issue_comment" ]; then
27+ if [ "${{ github.event.issue.pull_request }}" != "" ]; then
28+ COMMENT="${{ github.event.comment.body }}"
29+ # Check for @continue-agent mention
30+ if echo "$COMMENT" | grep -qi "@continue-agent"; then
31+ SHOULD_RUN="true"
32+ # Check for review type keywords
33+ if echo "$COMMENT" | grep -qi "detailed"; then
34+ REVIEW_TYPE="detailed"
35+ fi
36+ fi
37+ fi
38+ fi
39+
40+ echo "should_run=$SHOULD_RUN" >> $GITHUB_OUTPUT
41+ echo "review_type=$REVIEW_TYPE" >> $GITHUB_OUTPUT
42+
43+ - name : Run Continue Review
44+ if : steps.check.outputs.should_run == 'true'
45+ uses : continuedev/continue/actions/general-review@main
46+ with :
47+ continue-api-key : ${{ inputs.continue-api-key || secrets.CONTINUE_API_KEY || vars.CONTINUE_DEFAULT_KEY || 'demo-key' }}
48+ continue-org : " continue"
49+ continue-config : " continue/default"
50+ use_github_app : false # Keep it simple - no app complexity
51+
52+ branding :
53+ icon : " code"
54+ color : " blue"
You can’t perform that action at this time.
0 commit comments