Merge branch 'refs/heads/dev' into feat/auth #300
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: GPT CR | |
# | |
#permissions: | |
# contents: read | |
# pull-requests: write | |
# | |
#on: | |
# push: | |
# branches: [ "dev", "main" ] | |
# pull_request: | |
# branches: [ "dev", "main" ] | |
# | |
#jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# | |
# - name: Set up JDK 17 | |
# uses: actions/setup-java@v4 | |
# with: | |
# java-version: '17' | |
# distribution: 'corretto' | |
# | |
# - name: Gradle 설정 | |
# uses: gradle/actions/setup-gradle@v3 | |
# | |
# - name: Make application.yml | |
# run: | | |
# mkdir -p src/main/resources | |
# echo "${{ secrets.DB_YML }}" | base64 --decode > src/main/resources/application.yml | |
# find src | |
# | |
# - name: Make gradle.properties | |
# run: | | |
# echo "${{ secrets.GRADLE_PROPERTIES }}" | base64 --decode > gradle.properties | |
# | |
# - name: Grant execute permission for gradlew | |
# run: chmod +x ./gradlew | |
# shell: bash | |
# | |
# - name: Build with Gradle | |
# run: ./gradlew clean build | |
# shell: bash | |
# | |
# - name: Get current time | |
# uses: 1466587594/get-current-time@v2 | |
# id: current-time | |
# with: | |
# format: YYYY-MM-DDTHH-mm-ss | |
# utcOffset: "+09:00" | |
# | |
# - name: Show Current Time | |
# run: echo "CurrentTime=${{steps.current-time.outputs.formattedTime}}" | |
# shell: bash | |
# | |
# - name: ChatGPT codeReviewer | |
# uses: anc95/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
# | |
# # Optional | |
# LANGUAGE: Korean | |
# OPENAI_API_ENDPOINT: https://api.openai.com/v1 | |
# MODEL: gpt-3.5-turbo # https://platform.openai.com/docs/models | |
# PROMPT: Please check if there are any confusions or irregularities in the following code diff | |
# 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. |