From 1dbba32d085b8794bf55417086058bb26f81f0c8 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 1 Aug 2025 13:40:47 -0700 Subject: [PATCH 1/2] Create cli-review.yaml --- .github/workflows/cli-review.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/cli-review.yaml diff --git a/.github/workflows/cli-review.yaml b/.github/workflows/cli-review.yaml new file mode 100644 index 00000000000..c89de643b57 --- /dev/null +++ b/.github/workflows/cli-review.yaml @@ -0,0 +1,29 @@ +name: CLI Review + +on: + pull_request: + branches: + - main + + push: + branches: + - main + +jobs: + cli-review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run Continue CLI Review + run: | + echo "Running Continue CLI with prompt:" + echo "==================================" + cat review_prompt.txt + echo "==================================" + echo "" + + # Run the CLI with the generated prompt and output text directly + cat review_prompt.txt | cn --config "${{ inputs.assistant }}" -p + env: + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} \ No newline at end of file From 1bc77912c5f5750847409eced17ffd5f7ef3d166 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 1 Aug 2025 13:46:32 -0700 Subject: [PATCH 2/2] Update cli-review.yaml --- .github/workflows/cli-review.yaml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cli-review.yaml b/.github/workflows/cli-review.yaml index c89de643b57..8a6557be1e2 100644 --- a/.github/workflows/cli-review.yaml +++ b/.github/workflows/cli-review.yaml @@ -15,15 +15,22 @@ jobs: 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 prompt:" + echo "Running Continue CLI with hardcoded prompt:" echo "==================================" - cat review_prompt.txt + echo "Review this pull request and provide feedback on code quality" echo "==================================" echo "" - # Run the CLI with the generated prompt and output text directly - cat review_prompt.txt | cn --config "${{ inputs.assistant }}" -p + # 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