An open API service indexing awesome lists of open source software.

https://github.com/iamtheritikraj/aicodereviewapp

AI Code Review App
https://github.com/iamtheritikraj/aicodereviewapp

github-api java maven oauth2 spring-boot spring-security

Last synced: 3 months ago
JSON representation

AI Code Review App

Awesome Lists containing this project

README

          

AI Code Review App


The AI Code Review App is a backend service built using Java that allows users to log in via GitHub OAuth, retrieve their repositories, and review code files using AI models like ChatGPT or Claude. The application leverages GitHub's API to fetch repository information and file contents, which are then analyzed by AI models for code review. The results of the review are presented to the user in a concise and informative manner.


Features



  • GitHub OAuth Login: Secure authentication using GitHub OAuth, allowing users to log in using their GitHub credentials.

  • Repository Listing: Retrieve a list of repositories associated with the authenticated GitHub user.

  • File Content Retrieval: Fetch the contents of files from the user's repositories using GitHub API.

  • AI Code Review: Send code files to ChatGPT for automated code review and analysis.

  • Results Display: Display AI-generated review feedback to the user.


Technologies Used



  • Java: The primary programming language used for building the backend.

  • Spring Boot: Framework for building the RESTful API and handling dependencies.

  • OAuth 2.0: For secure authentication with GitHub.

  • GitHub API: To interact with GitHub repositories and fetch file contents.

  • AI Models: Integration with AI models like ChatGPT for code review.

  • Maven: Build and dependency management tool.
  • Usage


  • Log in with GitHub: Navigate to the /login endpoint, which redirects to GitHub for authentication. Once authenticated, you'll be redirected back to the app with a GitHub access token.
  • Fetch Repositories: Use the /repos endpoint to list all repositories associated with the authenticated user.
  • Select a File to Review: Choose a repository and a file to review. Use the /repos/{owner}/{repo}/contents/{path} endpoint to fetch the file content.
  • Send for Review: Send the file content to the AI model using the /code_review endpoint. The AI will analyze the code and provide feedback.
  • View Results: The AI's review will be returned and displayed to the user, offering insights and suggestions.