Skip to content

Commit d38220f

Browse files
Merge pull request #4 from softrams/setting-open-source
Updating Readme & Getting project setup for open source
2 parents 648926e + dc6e3ce commit d38220f

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Softrams LLC
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<div align="center">
2+
3+
![Pull Request Magic](docs/images/multi_color.png#gh-light-mode-only)
4+
5+
![Pull Request Magic](docs/images/white.png#gh-dark-mode-only)
6+
7+
# Magic Automating Pull Request
8+
9+
AI Powered Automation for Pull Requests, We're here to help understand and grow the ability to automate a Pull Request.
10+
11+
</div>
12+
13+
## ✨ Features
14+
15+
- Line by line code review
16+
- Overall Summary of the Pull Request in a comment
17+
- Rewritting or Writing a Pull Request Desciption based on Pull Request Code
18+
- Auto Approving of Pull Request
19+
- Merging of Pull Request (🔥 Coming Soon)
20+
21+
## 🚀 Usage
22+
23+
### 👁️ Basic Setup
24+
```yaml
25+
name: AI Code Reviewer
26+
27+
on:
28+
pull_request:
29+
types:
30+
[
31+
opened,
32+
reopened,
33+
synchronize
34+
]
35+
36+
jobs:
37+
code_review:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: AI Reviewer
43+
uses: softrams/[email protected]
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
47+
```
48+
49+
## 🔥 Configurable Fields
50+
Below is a list of configurable fields that can be used with the ***Magic Github Action***
51+
52+
| Name | Type | Default Value | Required |
53+
|--|--|--|--|
54+
| github_token | string | none | yes |
55+
| openai_api_key | string | none | yes |
56+
| excluded_files | []string | ['node_modules, package-lock.json, yarn.lock'] | no |
57+
| openai_model | string | 'gpt-4' | no |
58+
| review_code | boolean | true | no |
59+
| generate_summary | boolean | false | no |
60+
| overall_code_review | boolean | false | no |
61+
| auto_approve | boolean | false | no |

docs/images/multi_color.png

26.2 KB
Loading

docs/images/white.png

27.4 KB
Loading

0 commit comments

Comments
 (0)