blog

The Astronuts Blog

The latest updates on all Astronuts products and topics

Follow Astronuts

Follow Astronuts

Astronuts: Automated Code Review Made Easy

Are you looking to streamline your code review process and enhance code quality? Astronuts offers an innovative solution with its automated code review and static code analysis tools. In just minutes, you can analyze your first GitHub pull request using the CLI or by installing the Astronuts app for GitHub. Plus, every new account comes with $5 free credits to get you started.

Analyze Your First Pull Request

Getting started is simple. Open your terminal and run the following command—be sure to replace <your-github-pr-url> with the URL of a pull request you have access to. When prompted, authenticate in your browser, and your PR analysis will begin immediately.

npx astronuts-ai analyze pr=<your-github-pr-url>
PR analysis using the CLI on a terminal window
PR analysis using the CLI in a terminal window

View Analysis Results

Once the analysis is complete, results appear directly on your GitHub PR and your Astronuts dashboard. You’ll receive:

  • GitHub pull request summaries that highlight key changes.
  • Detailed change lists.
  • GitHub code review suggestions for improvements.
  • A comprehensive line-by-line code review with auto-fix.

PR Summary

Astronuts provides a concise summary as a comment on your PR, giving you immediate insights into the proposed changes.

PR review summary showing as a GitHub PR comment
PR review summary showing as a GitHub PR comment

Code Suggestions

Receive actionable suggestions to enhance your code quality. Each suggestion can be expanded for explanations, relevance, and possible fixes—including options for a code review auto fix.

PR review suggestions showing as a GitHub PR comment
Code suggestions summary as a GitHub PR comment

Line-by-Line Review and Auto-Fix

Line by line review suggestions appear as review comments directly on your PR. You can auto-fix if the suggestions are acceptable to you by clicking the Commit suggestion button.

Line by line review and auto-fix button showing on a GitHub PR
Line-by-line review and auto-fix button on a GitHub PR

PR Title and Description Auto-Update

Keep your pull requests informative and up-to-date. Astronuts can automatically update the PR title and description to reflect the latest changes, ensuring clear communication with your team.

Code Health Check with Static Code Analysis

Use the Astronuts GitHub Action to obtain code health statistics and trends. This feature performs static code analysis to help you understand if the current PR reduces technical debt.

GitHub Action Configuration

Integrate Astronuts into your workflow by adding the following to your GitHub Actions:

on:
  pull_request:
    branches:
      - main

permissions:
  contents: read
  pull-requests: write

jobs:
  Build:
    runs-on: ubuntu-latest
    steps:
      - name: Run Astronuts Code Quality Checks
        uses: astronuts-app/astronuts-ai@v3.0
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          prReview: true
          prWalkthrough: true
          staticAnalysis: true

The results are posted to your PR and your dashboard, providing valuable insights into your code’s health.

Static analysis and code health results appear on your GitHub PR and your dashboard
Static analysis and code health results on your GitHub PR and dashboard

Manage PR analysis via settings

Customize your experience by managing settings through your dashboard or directly in your repository using an astronuts.yml file at the root.

Manage PR analysis settings from your dashboard or using an astronuts.yml file.
Manage PR analysis settings from your dashboard or using an astronuts.yml file

Manage connected accounts and repositories

You can add personal or organization accounts and manage permissions to your repositories.

Managed connected accounts and repositories from the Astronuts dashboard
Manage connected accounts and repositories from the Astronuts dashboard

Collaborate with your team

Ready to bring your team on board? Create a workspace to collaborate seamlessly.

Workspaces

Create workspaces to work collaboratively.
Workspaces for collaborative code reviews

Add team members

There’s no limit on the number of team members you could add. Start with all those who are in your connected GitHub organizational account. We make it easy for you by add them automatically. You can add/remove/manage permissions from your dashboard.

Add your team members at no extra cost. resources in a workspace are shared.
Add your team members

Get Started Today

Experience the future of code reviews with Astronuts. Enhance your workflow with:

  • Automated code review for efficiency.
  • In-depth static code analysis for code health.
  • Insightful GitHub pull request summaries.
  • Actionable GitHub code review suggestions.
  • Convenient code review auto fix options.

Head over to our documentation for detailed references and configuration options.


Ready to revolutionize your code review process? Sign up now and make the most of your $5 free credits!


Subscribe to Blog updates

Discover more

Astronuts automated code reviews and static analysis
Arun Patra

Astronuts: Automated Code Review Made Easy

Are you looking to streamline your code review process and enhance code quality? Astronuts offers an innovative solution with its automated code review and static code analysis tools. In just minutes, you can analyze your first GitHub pull request using the CLI or by installing the Astronuts app for GitHub. Plus, every new account comes with $5 free credits to

Read More »