Feat/Persist-Url #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: shortener | |
env: | |
DOTNET_VERSION: '8' | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get the latest code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build | |
- name: GPT Reviewer | |
uses: anc95/ChatGPT-CodeReview@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GTOKEN }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
LANGUAGE: English | |
OPENAI_API_ENDPOINT: https://api.openai.com/v1 | |
MODEL: gpt-4o | |
PROMPT: "Please check the naming method convention and suggest best in the following code diff" | |
top_p: 1 | |
temperature: 1 | |
max_tokens: 10000 | |
MAX_PATCH_LENGTH: 10000 | |