PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

Add GPT based code review CI

Open BenjaminEngeset opened this issue 2 years ago • 2 comments

Are we open for adding a GPT based code review CI?

It's breaking and cutting edge, but it would have been interesting to have this on our PRs and see what kind of suggestions would be emitted and if they are of any value in the cycle. There is already a Microsoft repository that have taken it in use.

https://github.com/microsoft/gpt-review

Example workflow:

name: GPT Review on Pull Request

on:
  pull_request_target:
    branches: [main]

jobs:
  add_pr_comment:
    runs-on: ubuntu-latest
    name: OpenAI PR Comment
    steps:
      - id: review
        uses: microsoft/[email protected]
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          AZURE_OPENAI_API: ${{ secrets.AZURE_OPENAI_API }}
          AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}

Example suggestions provided:

https://github.com/microsoft/SynapseML/pulls

BenjaminEngeset avatar May 24 '23 19:05 BenjaminEngeset

@BenjaminEngeset We don't have access to an Azure Open AI instance on this repo. We can leave this issue open for a time however I don't think we will be able to progress this anytime soon.

BernieWhite avatar May 25 '23 03:05 BernieWhite

@BenjaminEngeset We don't have access to an Azure Open AI instance on this repo. We can leave this issue open for a time however I don't think we will be able to progress this anytime soon.

@BernieWhite Great, thanks!

BenjaminEngeset avatar May 25 '23 07:05 BenjaminEngeset