Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpt1.1 #301

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/GTP1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types:
- opened
- synchronize
- reopened
- review_requested

jobs:
test:
if: >
(
github.event.action == 'review_requested' &&
github.event.requested_reviewer.login == 'Nordicbuilder'
) ||
contains(github.event.pull_request.requested_reviewers.*.login, 'Nordicbuilder')
runs-on: ubuntu-latest
steps:
- uses: NordicBuilder/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.NORDICBUILDER_GPT }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Optional
LANGUAGE: English
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: gpt-4o-mini # https://platform.openai.com/docs/models
PROMPT: "Please check if there are any confusions or irregularities in the following code diff. Be concise. If you dont see errors dont comment : "
top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p
temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature
max_tokens: 10000
MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length.
IGNORE_PATTERNS: /dummy_modules/**/*,dummy.md # glob pattern or regex pattern to ignore files, separated by comma
INCLUDE_PATTERNS: "*.*" # glob pattern or regex pattern to include files, separated by comma
31 changes: 0 additions & 31 deletions .github/workflows/backport.yml

This file was deleted.

108 changes: 0 additions & 108 deletions .github/workflows/compliance.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/contribs.yml

This file was deleted.

112 changes: 0 additions & 112 deletions .github/workflows/create-upmerge-PRs.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/dnm.yml

This file was deleted.

Loading