Skip to content

cli start scan#15

Merged
Chhinna merged 3 commits intomainfrom
start-scan
Apr 29, 2026
Merged

cli start scan#15
Chhinna merged 3 commits intomainfrom
start-scan

Conversation

@pranavcodeant
Copy link
Copy Markdown
Collaborator

@pranavcodeant pranavcodeant commented Apr 28, 2026

CodeAnt-AI Description

Start a repository scan from the CLI

What Changed

  • Adds a new scans start-scan command to trigger a fresh analysis run from the terminal
  • When repo, branch, or commit are not provided, the command now tries to detect them from the current git context
  • Supports optional include and exclude file patterns so users can narrow what gets scanned
  • Shows clear errors when the repo, branch, commit, or scan request cannot be resolved
  • Documents the new command and examples in the CLI guide

Impact

✅ Faster scan starts from the terminal
✅ Fewer manual repo and commit lookups
✅ More targeted scans with path filters

🔄 Retrigger CodeAnt AI Review

Details

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI is running Incremental review

@codeant-ai codeant-ai Bot added the size:L This PR changes 100-499 lines, ignoring generated files label Apr 28, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

🏁 CodeAnt Quality Gate Results

Commit: 27e1dd4a
Scan Time: 2026-04-28 10:09:07 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found
Duplicate Code ✅ PASSED 10.4% duplicated

View Full Results

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI Incremental review completed.

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI is running the review.

@codeant-ai codeant-ai Bot added size:L This PR changes 100-499 lines, ignoring generated files and removed size:L This PR changes 100-499 lines, ignoring generated files labels Apr 28, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

Sequence Diagram

This PR adds a CLI command that auto-detects repository context and triggers a new analysis run on the CodeAnt backend, optionally scoped by include and exclude path filters.

sequenceDiagram
    participant User
    participant CLI
    participant Git
    participant CodeAntAPI

    User->>CLI: Run scans start-scan with optional repo, branch, commit, filters
    CLI->>Git: Resolve missing repo, branch, and commit from local and remote
    Git-->>CLI: Resolved repo, branch, and commit
    CLI->>CodeAntAPI: Request new analysis run with repo, branch, commit, include and exclude paths
    CodeAntAPI-->>CLI: Return scan start result
    CLI-->>User: Print analysis started message or error
Loading

Generated by CodeAnt AI

Comment thread src/commands/scans/start-scan.js Outdated
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented Apr 28, 2026

CodeAnt AI finished running the review.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Chhinna Chhinna merged commit ad10804 into main Apr 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants