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

[chore] GPT 리뷰어 등록 및 cicd 코드 변경 #111

Merged
merged 5 commits into from
Jan 8, 2025
Merged
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
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
branches: [main]
branches: [main, develop]

jobs:
build:
Expand All @@ -17,13 +17,18 @@ jobs:
with:
node-version: '18.18.2'

- name: pnpm 설치중..
run: npm install -g pnpm

- name: 종속성 설치중...
run: pnpm install
run: npm install
working-directory: ./fe

- name: 빌드 중..
run: pnpm build
run: npm run build
working-directory: ./fe

# - name: 테스트 실행 중..
# run: npm run test
# working-directory: ./fe

# - name: 코드 린트 체크 중..
# run: npm run lint
# working-directory: ./fe
28 changes: 28 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code Review

permissions:
contents: read
pull-requests: write

on:
pull_request:
types: [opened, reopened]

jobs:
test:
# if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
runs-on: ubuntu-latest
steps:
- uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Optional
LANGUAGE: Korean # default: English
OPENAI_API_ENDPOINT: https://api.openai.com/v1
MODEL: "gpt-4o-mini" # https://platform.openai.com/docs/models
PROMPT: "code review please" # https://platform.openai.com/docs/api-reference/chat/create#chat/create-prompt
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.
Loading