diff --git a/.github/workflows/build-doctor.yml b/.github/workflows/build-doctor.yml deleted file mode 100644 index 9e407d2a..00000000 --- a/.github/workflows/build-doctor.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Build Doctor 🩺 - -on: - workflow_run: - workflows: [ - "Choose and Deploy 🚀", - "Demo Build", - "Blackduck analysis", - "CodeQL Analysis", - "Deploy to Maven Central", - "Main build and snapshot deploy", - "Multi Tenancy Deploy & Integration Test🚀", - "Multi Tenancy Deploy & Integration Test LatestVersion🚀", - "Pull Request Builder", - "Single Tenant Deploy and Integration Test", - "Single Tenant Deploy and Integration Test LatestVersion", - "Single Tenant Integration Test 🚀", - "SonarQube Analysis", - "UnitTestsWithCodeCoverage" - ] - types: - - completed - -jobs: - diagnose-failure: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - permissions: - actions: read - contents: write - issues: write - pull-requests: write - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install dependencies - run: npm install @actions/github@5 @google/generative-ai @octokit/core - - - name: Run Build Doctor Analysis - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }} - WORKFLOW_NAME: ${{ github.event.workflow_run.name }} - REPO_OWNER: ${{ github.repository_owner }} - REPO_NAME: ${{ github.event.repository.name }} - run: node .github/scripts/analyze-failure.js diff --git a/.github/workflows/gemini-ask.yml b/.github/workflows/gemini-ask.yml deleted file mode 100644 index d6af8eb5..00000000 --- a/.github/workflows/gemini-ask.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Gemini AI Comment Responder - -on: - issue_comment: - types: [created] - -jobs: - respond: - # Ensure this job only runs for PR comments and not from the bot itself - if: github.event.issue.pull_request && github.event.comment.author.login != 'github-actions[bot]' - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - issues: write - - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install dependencies - run: npm install @actions/github @google/generative-ai @octokit/core - - - name: Run Gemini Responder Script - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - run: node .github/scripts/review.js diff --git a/.github/workflows/gemini-pr-review.yml b/.github/workflows/gemini-pr-review.yml deleted file mode 100644 index a63f258e..00000000 --- a/.github/workflows/gemini-pr-review.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Gemini AI PR Reviewer -on: - # This triggers the bot only when a comment is created on an issue or pull request. - issue_comment: - types: [created] - -jobs: - review: - # Ensure this job only runs if the comment was made on a Pull Request - if: github.event.issue.pull_request - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - name: Install dependencies - # Assuming your dependencies are in package.json. If not, this is fine. - run: npm install @actions/github @google/generative-ai @octokit/core - - name: Run Gemini PR Review Script - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - run: node .github/scripts/review.js diff --git a/.github/workflows/gemini_issues_review.yml b/.github/workflows/gemini_issues_review.yml deleted file mode 100644 index 0e8a33ba..00000000 --- a/.github/workflows/gemini_issues_review.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Gemini AI Issue Summarizer - -on: - # Triggers when a new issue is opened or an existing issue body/title is edited - issues: - types: [opened, edited] - -jobs: - summarize: - # Skip events triggered by the bot itself; for edits, only process body/title changes - if: | - github.actor != 'github-actions[bot]' && - (github.event.action == 'opened' || - (github.event.action == 'edited' && (github.event.changes.body != null || github.event.changes.title != null))) - runs-on: ubuntu-latest - permissions: - contents: read - issues: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Cache node modules - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.os }}-gemini-issues-${{ hashFiles('.github/scripts/review.js') }} - restore-keys: | - ${{ runner.os }}-gemini-issues- - - - name: Install dependencies - run: npm install @actions/github@5.1.1 @google/generative-ai @octokit/core - #run: npm install @actions/github @google/generative-ai @octokit/core - - - - name: Run Gemini Issue Summarizer Script - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - run: node .github/scripts/review.js