Skip to content

Commit

Permalink
chore(project): updating project to support a new readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrellRichards committed Jun 3, 2024
1 parent 648926e commit dc6e3ce
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
MIT License

Copyright (c) 2024 Softrams LLC

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<div align="center">

![Pull Request Magic](docs/images/multi_color.png#gh-light-mode-only)

![Pull Request Magic](docs/images/white.png#gh-dark-mode-only)

# Magic Automating Pull Request

AI Powered Automation for Pull Requests, We're here to help understand and grow the ability to automate a Pull Request.

</div>

## ✨ Features

- Line by line code review
- Overall Summary of the Pull Request in a comment
- Rewritting or Writing a Pull Request Desciption based on Pull Request Code
- Auto Approving of Pull Request
- Merging of Pull Request (🔥 Coming Soon)

## 🚀 Usage

### 👁️ Basic Setup
```yaml
name: AI Code Reviewer

on:
pull_request:
types:
[
opened,
reopened,
synchronize
]

jobs:
code_review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: AI Reviewer
uses: softrams/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
```
## 🔥 Configurable Fields
Below is a list of configurable fields that can be used with the ***Magic Github Action***
| Name | Type | Default Value | Required |
|--|--|--|--|
| github_token | string | none | yes |
| openai_api_key | string | none | yes |
| excluded_files | []string | ['node_modules, package-lock.json, yarn.lock'] | no |
| openai_model | string | 'gpt-4' | no |
| review_code | boolean | true | no |
| generate_summary | boolean | false | no |
| overall_code_review | boolean | false | no |
| auto_approve | boolean | false | no |
Binary file added docs/images/multi_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc6e3ce

Please sign in to comment.