diff --git a/.github/workflows/code_review.yml b/.github/workflows/code_review.yml new file mode 100644 index 0000000..e15258e --- /dev/null +++ b/.github/workflows/code_review.yml @@ -0,0 +1,22 @@ +name: Code Review GPT + +on: + pull_request: + branches: [main] + +jobs: + run_code_review: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Code Review GPT + uses: mattzcarey/code-review-gpt@v0.1.4-alpha + with: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + MODEL: 'gpt-3.5-turbo' + GITHUB_TOKEN: ${{ github.token }} diff --git a/app/Dockerfile b/app/Dockerfile index 30a17f7..8c9b986 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -4,10 +4,12 @@ WORKDIR /app COPY package.json yarn.lock ./ COPY app/package.json ./app/package.json COPY packages/file-graph/package.json ./packages/file-graph/package.json +COPY packages/utils/package.json ./packages/utils/package.json RUN yarn install --frozen-lockfile COPY app ./app COPY packages/file-graph ./packages/file-graph +COPY packages/utils ./packages/utils RUN yarn build # Production stage diff --git a/app/Dockerfile.dev b/app/Dockerfile.dev index a58a1cc..7548510 100644 --- a/app/Dockerfile.dev +++ b/app/Dockerfile.dev @@ -4,6 +4,7 @@ WORKDIR /app COPY package.json yarn.lock ./ COPY app/package.json ./app/package.json COPY packages/file-graph/package.json ./packages/file-graph/package.json +COPY packages/utils/package.json ./packages/utils/package.json RUN yarn install --frozen-lockfile WORKDIR /app/app diff --git a/app/package.json b/app/package.json index 4381231..9746862 100644 --- a/app/package.json +++ b/app/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@linux-odyssey/file-graph": "*", + "@linux-odyssey/utils": "*", "@fortawesome/fontawesome-svg-core": "^6.4.0", "@fortawesome/free-brands-svg-icons": "^6.4.0", "@fortawesome/free-regular-svg-icons": "^6.4.0", diff --git a/app/src/components/AuthenticationPart.vue b/app/src/components/AuthForm.vue similarity index 54% rename from app/src/components/AuthenticationPart.vue rename to app/src/components/AuthForm.vue index 3f2126a..70a6f98 100644 --- a/app/src/components/AuthenticationPart.vue +++ b/app/src/components/AuthForm.vue @@ -1,15 +1,27 @@