🙏 OpenAI Review is in its exciting early stages of development. We warmly invite you to contribute and join us on this journey to shape the tool's future, enhancing its usability and making it even better. Your ideas and contributions can make a real difference! 🙏
OpenAI Review is a tool designed to streamline your development workflow. Here's what it can do for you:
-
Automatically assign an assignee to a Pull Request.
-
Assign reviewers to a Pull Request.
-
Generate concise and informative descriptions.
-
Provide an overall review of each changed file in your Pull Request.
We are working on finding the right owner for this project. Meanwhile, code reviews can be sent to the AAA team
- Project document can be found in Project Confluence Space
- You can find open tickets in Project Backlog to start working on.
- If you encounter any issues, or have any ideas for improvement, please create tickets with us in Project Backlog
To make code changes to this project, follow these steps:
- Clone the repository:
git clone git@github.com:go1com/openai-review.git
- Navigate to the project directory:
cd openai-review
- Install the dependencies:
npm install
- Checkout to your new branch and start making changes
- Test your changes - Details instruction in How to test your OpenAI Review changes in your project
- Run
npm run pack
- Push, commit and request review
To use OpenAI Review in your project, follow these steps:
- Request for Azure OpenAI key and endpoint access.
- Create environment secret/variable for the Azure OpenAI key and endpoint in your project. In the following sample code, we use
secrets.AZURE_OPENAI_API_KEY
andvars.AZURE_OPENAI_ENDPOINT
. - From
.github/workflows
in your project repository, create a new file for the code review job. Here is the sample code:
name: "PR Review"
on:
pull_request:
types: [opened, synchronize, reopened, edited]
defaults:
run:
working-directory: ./
jobs:
openai_review:
name: "Azure OpenAI Review"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
env:
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
AZURE_OPENAI_ENDPOINT: ${{ vars.AZURE_OPENAI_ENDPOINT }}
steps:
- name: Azure OpenAI
uses: go1com/openai-review #Use go1com/openai-review@[your-branch-name] OR go1com/openai-review@[deployment-tag]
if: github.event_name == 'pull_request'
id: openai
with:
azure-openai-api-key: ${{ env.AZURE_OPENAI_API_KEY }}
azure-openai-endpoint: ${{ env.AZURE_OPENAI_ENDPOINT }}
bot-comment: true
- name: Print
run: |
echo "${{ steps.openai.outputs.text}}"
You can follow along with this tutorial as well https://www.loom.com/share/7dfceb0d1ea747ebbe610202c5ee9ed7
- When you create a new Pull Request, you will see a
PR Review
job running in your branch