diff --git a/.github/workflows/cli-review.yaml b/.github/workflows/cli-review.yaml new file mode 100644 index 0000000000..8a6557be1e --- /dev/null +++ b/.github/workflows/cli-review.yaml @@ -0,0 +1,36 @@ +name: CLI Review + +on: + pull_request: + branches: + - main + + push: + branches: + - main + +jobs: + cli-review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Install Continue CLI + run: npm install -g @continuedev/cli@1.4.21 + + - name: Run Continue CLI Review + run: | + echo "Running Continue CLI with hardcoded prompt:" + echo "==================================" + echo "Review this pull request and provide feedback on code quality" + echo "==================================" + echo "" + + # Run the CLI with a hardcoded prompt and output text directly + echo "Review this pull request and provide feedback on code quality" | cn --config "${{ inputs.assistant }}" -p + env: + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} \ No newline at end of file