diff --git a/.github/workflows/ai-pr-reviewer.yml b/.github/workflows/ai-pr-reviewer.yml deleted file mode 100644 index 105bca700a9..00000000000 --- a/.github/workflows/ai-pr-reviewer.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Code Review - -on: - pull_request: - types: [opened, synchronize, reopened] - pull_request_review_comment: - types: [created] - - -jobs: - review: - runs-on: ubuntu-latest - steps: - - uses: coderabbitai/ai-pr-reviewer@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_TOKEN }} - with: - debug: false - review_simple_changes: true - review_comment_lgtm: true - openai_light_model: "gpt-3.5-turbo" - openai_heavy_model: "gpt-3.5-turbo" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 02c0de22b82..00000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: WebUI -on: - push: - branches: - - master - paths-ignore: - - 'tests/**' - pull_request: - branches: - - '**' - paths-ignore: - - 'tests/**' - -jobs: - install: - name: Checkout and Install - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install - uses: ./.github/actions/prepare - - build: - name: Build - needs: [install] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install - uses: ./.github/actions/prepare - - name: Build - run: yarn build:prod:aot - - lint: - name: Validate code style - needs: [install] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install - uses: ./.github/actions/prepare - - name: Generate default environment file - run: yarn run check-env - - name: Build - run: yarn lint - - lint-translations: - name: Validate translation strings - needs: [install] - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install - uses: ./.github/actions/prepare - - name: Build - run: yarn run extract - - test: - name: Run tests - needs: [install] - runs-on: ubuntu-latest - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install - uses: ./.github/actions/prepare - - name: Run tests - run: yarn test:pr - - if: ${{ env.CODECOV_TOKEN }} - name: Upload coverage to codecov - uses: codecov/codecov-action@v3 - with: - name: webui - token: ${{ env.CODECOV_TOKEN }} - fail_ci_if_error: true diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml deleted file mode 100644 index 5e1f51e89f0..00000000000 --- a/.github/workflows/review.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: "Test Code Review" - -on: - pull_request: - types: [] - paths-ignore: - - "*.md" - - "LICENSE" - - "*.json" - -jobs: - review: - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - uses: actions/checkout@v4 - - name: "Get diff of the pull request" - id: get_diff - shell: bash - env: - PULL_REQUEST_HEAD_REF: "${{ github.event.pull_request.head.ref }}" - run: |- - git fetch origin "${{ env.PULL_REQUEST_HEAD_REF }}:${{ env.PULL_REQUEST_HEAD_REF }}" - git checkout "${{ env.PULL_REQUEST_HEAD_REF }}" - git diff "origin/${{ env.PULL_REQUEST_HEAD_REF }}" > "diff.txt" - # shellcheck disable=SC2086 - echo "diff=$(cat "diff.txt")" >> $GITHUB_ENV - - uses: yu-iskw/gpt-code-review-action@v0.3.0 - name: "Code Review by GPT" - id: review - with: - openai_api_key: ${{ secrets.OPENAI_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} - github_repository: ${{ github.repository }} - github_pull_request_number: ${{ github.event.pull_request.number }} - git_commit_hash: ${{ github.event.pull_request.head.sha }} - model: "gpt-3.5-turbo" - temperature: "0.1" - max_tokens: "512" - top_p: "1" - frequency_penalty: "0.0" - presence_penalty: "0.0" - pull_request_diff: |- - ${{ steps.get_diff.outputs.pull_request_diff }} - pull_request_chunk_size: "3500" - extra_prompt: |- - You are very familiar with typescript, rxjs, ngrx, jest and angular. - log_level: "DEBUG" diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index 5fd18af52eb..3b8d5ef2cac 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -2,7 +2,7 @@ name: Pull Request Stats on: pull_request: - types: [opened, edited] + types: [synchronize] jobs: stats: @@ -11,7 +11,7 @@ jobs: - name: Run pull request stats uses: flowwer-dev/pull-request-stats@master with: - period: 365 + period: 180 charts: true disableLinks: true limit: 6