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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tomasz-stefaniak
Copy link
Collaborator

@tomasz-stefaniak tomasz-stefaniak commented Aug 1, 2025

Description

[ What changed? Feel free to be brief. ]

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Added a GitHub Actions workflow to run the Continue CLI for automated code quality reviews on pull requests and pushes to main.

  • Dependencies
    • Installs the Continue CLI globally at version 1.4.21 using npm.

@tomasz-stefaniak tomasz-stefaniak requested a review from a team as a code owner August 1, 2025 20:46
@tomasz-stefaniak tomasz-stefaniak requested review from tingwai and removed request for a team August 1, 2025 20:46
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 1, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic analysis

2 issues found across 1 file • Review in cubic

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

# 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 }}
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>

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>


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

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants