Skip to content

Github PR Reviewer Snap-In | Team : SoloHacker #17

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 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Binary file added .DS_Store
Binary file not shown.
27 changes: 27 additions & 0 deletions github-pr-reviewer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Github-PR-Reviewer

## Overview
This Snap-in automates the code review process for GitHub Pull Requests (PRs) by leveraging AI-based analysis and seamless integration with DevRev. It retrieves PR details, analyzes code diffs, and provides intelligent feedback to enhance code quality, security, and performance.

The snap-in automatically synchronizes PR metadata, commits, and code diffs with relevant DevRev objects, ensuring a structured and comprehensive view of development changes. It leverages AI-powered analysis to detect security vulnerabilities, code smells, and performance issues within PRs, providing actionable insights to improve code quality. Additionally, the system updates DevRev issue titles and descriptions dynamically based on PR diffs, ensuring that issue tracking remains accurate and up-to-date.

## Key Features

### AI-Powered Code Analysis
- Detects security vulnerabilities, code smells, and performance issues in PRs.
- Provides AI-suggested fixes for detected issues directly in DevRev.
- Analyzes code diffs and highlights risk factors before merging.

### PR Diff-Based DevRev Issue Synchronization
- Dynamically updates the DevRev issue title based on PR diff changes.
- Modifies the DevRev issue description to reflect recent PR modifications, ensuring issue details remain accurate.

### Inline PR Review & Insights
- Auto-generates summary insights for PR changes.
- Predicts merge conflicts by analyzing branch differences.
- Suggests reviewers based on past contributions to similar code sections.


---
### Author: Mohamed Irfan P

1 change: 1 addition & 0 deletions github-pr-reviewer/code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions github-pr-reviewer/code/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
6 changes: 6 additions & 0 deletions github-pr-reviewer/code/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
};
4 changes: 4 additions & 0 deletions github-pr-reviewer/code/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
5 changes: 5 additions & 0 deletions github-pr-reviewer/code/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"execMap": {
"ts": "ts-node"
}
}
Loading