diff --git a/.github/workflows/misc.dependabot-automerge.yaml.skip b/.github/workflows/misc.dependabot-automerge.yaml.skip deleted file mode 100644 index 433177dc93..0000000000 --- a/.github/workflows/misc.dependabot-automerge.yaml.skip +++ /dev/null @@ -1,16 +0,0 @@ -name: Misc / Dependabot Automerge - -on: - pull_request: - -jobs: - merge: - runs-on: ubuntu-latest - env: - CI_PIPELINE_ID: ${{github.run_number}} - steps: - - uses: actions/checkout@v2 - - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - target: minor - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/playwright.yml.skip b/.github/workflows/playwright.yml.skip deleted file mode 100644 index 68b3f32fd9..0000000000 --- a/.github/workflows/playwright.yml.skip +++ /dev/null @@ -1,31 +0,0 @@ -name: Playwright Tests -on: - push: - branches: [ main, master ] - pull_request: - branches: [ main, master ] -jobs: - test: - timeout-minutes: 60 - runs-on: ubuntu-latest - env: - BASE_URL: http://localhost - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Install dependencies - run: npm ci - - name: Run Server in Docker - run: npm run dev - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests - run: cd Playwright && npm install && npx playwright install && npx playwright test - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 diff --git a/.github/workflows/reliability-copilot.yml b/.github/workflows/reliability-copilot.yml new file mode 100644 index 0000000000..07e5233e28 --- /dev/null +++ b/.github/workflows/reliability-copilot.yml @@ -0,0 +1,40 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +name: "OneUptime Reliability Copilot" + +on: + push: + branches: [ master ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ master ] + schedule: + # Run every day at midnight UTC + - cron: '0 0 * * *' + +jobs: + analyze: + name: OneUptime Reliability Copilot - Analyze Code + runs-on: ubuntu-latest + env: + CI_PIPELINE_ID: ${{github.run_number}} + permissions: + actions: read + # We will never commit to the main/master branch. We will always create a PR. + contents: write + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Run Reliability Copilot in Doker Container + - name: Run Copilot + run: | + docker run --rm -v $(pwd):/repository -w /repository oneuptime/copilot:latest \ + -e ONEUPTIME_URL='https://test.oneuptime.com' \ + -e ONEUPTIME_REPOSITORY_SECRET_KEY=${{ secrets.COPILOT_ONEUPTIME_REPOSITORY_SECRET_KEY }} \ + -e GITHUB_TOKEN=${{ github.token }} \ + -e GITHUB_USERNAME='simlarsen' \ + -e ONEUPTIME_LLAMA_SERVER_URL='http://57.128.112.160:8547' \ No newline at end of file diff --git a/Copilot/README.md b/Copilot/README.md index b7d29e3ed9..76b37f9801 100644 --- a/Copilot/README.md +++ b/Copilot/README.md @@ -5,7 +5,7 @@ Copilot is a tool that helps you improve your codebase automatically. ## Run Copilot with Docker ```bash -docker run -v $(pwd):/app -w /app oneuptime/copilot +docker run -v $(pwd):/repository -w /repository oneuptime/copilot ``` diff --git a/Dashboard/src/Utils/Breadcrumbs/AICopilotBreadcrumbs.ts b/Dashboard/src/Utils/Breadcrumbs/AICopilotBreadcrumbs.ts index 9da3d032d4..4d0412b615 100644 --- a/Dashboard/src/Utils/Breadcrumbs/AICopilotBreadcrumbs.ts +++ b/Dashboard/src/Utils/Breadcrumbs/AICopilotBreadcrumbs.ts @@ -14,7 +14,12 @@ export function getCodeRepositoryBreadcrumbs( ]), ...BuildBreadcrumbLinksByTitles( PageMap.AI_COPILOT_CODE_REPOSITORY_VIEW_DELETE, - ["Project", "Reliability Copilot", "View Git Repository", "Delete Repository"], + [ + "Project", + "Reliability Copilot", + "View Git Repository", + "Delete Repository", + ], ), ...BuildBreadcrumbLinksByTitles( PageMap.AI_COPILOT_CODE_REPOSITORY_VIEW_SETTINGS,