Skip to content

Tomasz/continuous ai review #6930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/cli-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CLI Review

on:
pull_request:
branches:
- main

push:
branches:
- main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need a code review if the commit has already been pushed to main?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on:
  pull_request:
    types: [ready_for_review]

This would be ideal


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/[email protected]

- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputs.assistant is undefined in this context, so the Continue CLI will receive an empty --config value and the step will fail at runtime

Prompt for AI agents
Address the following comment on .github/workflows/cli-review.yaml at line 34:

<comment>`inputs.assistant` is undefined in this context, so the Continue CLI will receive an empty `--config` value and the step will fail at runtime</comment>

<file context>
@@ -0,0 +1,36 @@
+name: CLI Review
+
+on:
+  pull_request:
+    branches:
+      - main
+
+  push:
+    branches:
</file context>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the idea that we would check the github actions log to see the output of the review?

env:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job assumes secrets.CONTINUE_API_KEY is always available, but it will be empty for PRs from forks, leading to runtime failures

Prompt for AI agents
Address the following comment on .github/workflows/cli-review.yaml at line 36:

<comment>The job assumes `secrets.CONTINUE_API_KEY` is always available, but it will be empty for PRs from forks, leading to runtime failures</comment>

<file context>
@@ -0,0 +1,36 @@
+name: CLI Review
+
+on:
+  pull_request:
+    branches:
+      - main
+
+  push:
+    branches:
</file context>

Loading