Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allyw/copilot-pr-review
This is a tool that combines LLM model's capability with GitHub action in CI Pipeline to improve development efficiency and quality.
https://github.com/allyw/copilot-pr-review
ai-assistant code-review
Last synced: about 1 month ago
JSON representation
This is a tool that combines LLM model's capability with GitHub action in CI Pipeline to improve development efficiency and quality.
- Host: GitHub
- URL: https://github.com/allyw/copilot-pr-review
- Owner: AllyW
- License: mit
- Created: 2024-08-23T07:09:27.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T14:57:36.000Z (4 months ago)
- Last Synced: 2024-11-01T23:12:57.915Z (3 months ago)
- Topics: ai-assistant, code-review
- Language: Python
- Homepage: https://github.com/marketplace/actions/copilot-code-review
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# copilot-code-review
This is a tool that combines LLM model's capability with GitHub action in CI Pipeline to improve development efficiency and quality.
## How To Use
### Set Up Azure AI Service
In the Settings of your repo, under `Actions` of `Secrets and variables` tab, please add `APIKEY` and `ENDPOINT` into repository secrets and their value can be get from your registered Azure AI Service.
### Add action into workflow
In your workflow file, please include the code snippet below into it
```yaml
- name: Copilot PR Review
uses: AllyW/copilot-pr-review@
with:
APIKEY: ${{ secrets.APIKEY }}
ENDPOINT: ${{ secrets.ENDPOINT }}
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_EVENT: ${{ toJSON(github.event) }}
code_suggest: True
pr_summary: True
pr_reset: True
```## Usages
For now, except the necessary auth keys of ai service, there are four parameters developers can apply on demand.
1. `code_suggest`: Whether review pr code change by line of patch, default: `False`
2. `pr_summary`: Whether draw a conclusion from whole pr diff, default: `True`
3. `pr_reset`: Whether clean last round pr reviews, default: `True`
4. `review_filter`: Whether filter review result by evaluation process