diff --git a/.github/workflows/ai-pr-reviewer.yml b/.github/workflows/ai-pr-reviewer.yml deleted file mode 100644 index 34431cc..0000000 --- a/.github/workflows/ai-pr-reviewer.yml +++ /dev/null @@ -1,29 +0,0 @@ - - name: Code Review - - permissions: - contents: read - pull-requests: write - - on: - pull_request: - pull_request_review_comment: - types: [created] - - concurrency: - group: - ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}-${{ github.event_name == 'pull_request_review_comment' && 'pr_comment' || 'pr' }} - cancel-in-progress: ${{ github.event_name != 'pull_request_review_comment' }} - - jobs: - review: - runs-on: ubuntu-latest - steps: - - uses: Entelligence-AI/entelligence-pr-reviewer@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - with: - debug: false - review_simple_changes: false - review_comment_lgtm: false diff --git a/.github/workflows/issue-solvded2r.yml b/.github/workflows/issue-solvded2r.yml deleted file mode 100644 index a685bdf..0000000 --- a/.github/workflows/issue-solvded2r.yml +++ /dev/null @@ -1,72 +0,0 @@ - -name: Entelligence-AI -permissions: - contents: read - issues: write -on: - issues: - types: [opened, edited] -jobs: - handle_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Extract Repository and Username - id: extract-repo-info - run: | - repo_name=$(basename $GITHUB_REPOSITORY) - username=$(dirname $GITHUB_REPOSITORY | cut -d'/' -f1) - echo "REPO_NAME=$repo_name" >> $GITHUB_ENV - echo "USERNAME=$username" >> $GITHUB_ENV - - - name: Sanitize Issue Body - id: sanitize-body - run: | - sanitized_body=$(echo "${{ github.event.issue.body }}" | tr -d '\r' | tr '\n' ' ') - echo "SANITIZED_BODY=${sanitized_body}" >> $GITHUB_ENV - - - name: Debug Sanitized Body - run: | - echo "Sanitized Body: ${{ env.SANITIZED_BODY }}" - - - name: Call API - id: call-api - env: - API_URL: ${{ secrets.ENTELLIGENCE_AI_ISSUE_API }} - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ env.SANITIZED_BODY }} - REPO_NAME: ${{ env.REPO_NAME }} - USERNAME: ${{ env.USERNAME }} - run: | - set +e - response=$(curl -s -X POST ${{env.API_URL}} \ - -H "Content-Type: application/json" \ - -d "{\"vectorDBUrl\": \"hub://aiswaryas/${{env.REPO_NAME}}\", \"title\": \"${{env.ISSUE_TITLE}}\", \"summary\": \"${{env.ISSUE_BODY}}\", \"history\": [], \"repoName\": \"${{env.USERNAME}}/${{env.REPO_NAME}}\"}") - body=$(echo "$response" | sed '$d') - echo "$response" - echo "API_RESPONSE<> $GITHUB_ENV - echo $(printf "%s" "$body" | base64) >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - set -e - - - name: Post Comment on Issue - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const issueNumber = context.issue.number; - const apiResponse = Buffer.from(process.env.API_RESPONSE, 'base64').toString('utf-8'); - - github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issueNumber, - body: apiResponse - }); diff --git a/.github/workflows/issue-solvedddr.yml b/.github/workflows/issue-solvedddr.yml deleted file mode 100644 index a685bdf..0000000 --- a/.github/workflows/issue-solvedddr.yml +++ /dev/null @@ -1,72 +0,0 @@ - -name: Entelligence-AI -permissions: - contents: read - issues: write -on: - issues: - types: [opened, edited] -jobs: - handle_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Extract Repository and Username - id: extract-repo-info - run: | - repo_name=$(basename $GITHUB_REPOSITORY) - username=$(dirname $GITHUB_REPOSITORY | cut -d'/' -f1) - echo "REPO_NAME=$repo_name" >> $GITHUB_ENV - echo "USERNAME=$username" >> $GITHUB_ENV - - - name: Sanitize Issue Body - id: sanitize-body - run: | - sanitized_body=$(echo "${{ github.event.issue.body }}" | tr -d '\r' | tr '\n' ' ') - echo "SANITIZED_BODY=${sanitized_body}" >> $GITHUB_ENV - - - name: Debug Sanitized Body - run: | - echo "Sanitized Body: ${{ env.SANITIZED_BODY }}" - - - name: Call API - id: call-api - env: - API_URL: ${{ secrets.ENTELLIGENCE_AI_ISSUE_API }} - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ env.SANITIZED_BODY }} - REPO_NAME: ${{ env.REPO_NAME }} - USERNAME: ${{ env.USERNAME }} - run: | - set +e - response=$(curl -s -X POST ${{env.API_URL}} \ - -H "Content-Type: application/json" \ - -d "{\"vectorDBUrl\": \"hub://aiswaryas/${{env.REPO_NAME}}\", \"title\": \"${{env.ISSUE_TITLE}}\", \"summary\": \"${{env.ISSUE_BODY}}\", \"history\": [], \"repoName\": \"${{env.USERNAME}}/${{env.REPO_NAME}}\"}") - body=$(echo "$response" | sed '$d') - echo "$response" - echo "API_RESPONSE<> $GITHUB_ENV - echo $(printf "%s" "$body" | base64) >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - set -e - - - name: Post Comment on Issue - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const issueNumber = context.issue.number; - const apiResponse = Buffer.from(process.env.API_RESPONSE, 'base64').toString('utf-8'); - - github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issueNumber, - body: apiResponse - }); diff --git a/.github/workflows/issue-solver.yml b/.github/workflows/issue-solver.yml deleted file mode 100644 index a685bdf..0000000 --- a/.github/workflows/issue-solver.yml +++ /dev/null @@ -1,72 +0,0 @@ - -name: Entelligence-AI -permissions: - contents: read - issues: write -on: - issues: - types: [opened, edited] -jobs: - handle_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Extract Repository and Username - id: extract-repo-info - run: | - repo_name=$(basename $GITHUB_REPOSITORY) - username=$(dirname $GITHUB_REPOSITORY | cut -d'/' -f1) - echo "REPO_NAME=$repo_name" >> $GITHUB_ENV - echo "USERNAME=$username" >> $GITHUB_ENV - - - name: Sanitize Issue Body - id: sanitize-body - run: | - sanitized_body=$(echo "${{ github.event.issue.body }}" | tr -d '\r' | tr '\n' ' ') - echo "SANITIZED_BODY=${sanitized_body}" >> $GITHUB_ENV - - - name: Debug Sanitized Body - run: | - echo "Sanitized Body: ${{ env.SANITIZED_BODY }}" - - - name: Call API - id: call-api - env: - API_URL: ${{ secrets.ENTELLIGENCE_AI_ISSUE_API }} - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ env.SANITIZED_BODY }} - REPO_NAME: ${{ env.REPO_NAME }} - USERNAME: ${{ env.USERNAME }} - run: | - set +e - response=$(curl -s -X POST ${{env.API_URL}} \ - -H "Content-Type: application/json" \ - -d "{\"vectorDBUrl\": \"hub://aiswaryas/${{env.REPO_NAME}}\", \"title\": \"${{env.ISSUE_TITLE}}\", \"summary\": \"${{env.ISSUE_BODY}}\", \"history\": [], \"repoName\": \"${{env.USERNAME}}/${{env.REPO_NAME}}\"}") - body=$(echo "$response" | sed '$d') - echo "$response" - echo "API_RESPONSE<> $GITHUB_ENV - echo $(printf "%s" "$body" | base64) >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - set -e - - - name: Post Comment on Issue - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const issueNumber = context.issue.number; - const apiResponse = Buffer.from(process.env.API_RESPONSE, 'base64').toString('utf-8'); - - github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issueNumber, - body: apiResponse - }); diff --git a/.github/workflows/issue_add.yml b/.github/workflows/issue_add.yml deleted file mode 100644 index 3fb3a7c..0000000 --- a/.github/workflows/issue_add.yml +++ /dev/null @@ -1,76 +0,0 @@ - name: Solve github issues - permissions: - contents: read - issues: write - on: - issues: - types: [opened,edited] - jobs: - handle_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js 20 - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Extract Repository and Username - id: extract-repo-info - run: | - repo_name=$(basename $GITHUB_REPOSITORY) - username=$(dirname $GITHUB_REPOSITORY | cut -d'/' -f1) - echo "REPO_NAME=$repo_name" >> $GITHUB_ENV - echo "USERNAME=$username" >> $GITHUB_ENV - - - name: Sanitize Issue Body - id: sanitize-body - run: | - sanitized_body=$(echo "${{ github.event.issue.body }}" | tr -d ' -' | tr ' -' ' ') - echo "SANITIZED_BODY=${sanitized_body}" >> $GITHUB_ENV - - - name: Debug Sanitized Body - run: | - echo "Sanitized Body: ${{ env.SANITIZED_BODY }}" - - - - name: Call API - id: call-api - env: - API_URL: "https://entelligence-ai--entelligenceai-solvegithubissuedeeplake.modal.run" - ISSUE_TITLE: ${{ github.event.issue.title }} - ISSUE_BODY: ${{ env.SANITIZED_BODY }} - REPO_NAME: ${{ env.REPO_NAME }} - USERNAME: ${{ env.USERNAME }} - run: | - set +e - response=$(curl -s -X POST ${{env.API_URL}} -H "Content-Type: application/json" -d "{"vectorDBUrl": "hub://aiswaryas/${{env.REPO_NAME}}", "title": "${{env.ISSUE_TITLE}}", "summary": "${{env.ISSUE_BODY}}", "history": [], "repoName": "${{env.USERNAME}}/${{env.REPO_NAME}}"}") - body=$(echo "$response" | sed '$d') - echo "$response" - echo "API_RESPONSE<> $GITHUB_ENV - echo $(printf "%s" "$body" | base64) >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - set -e - - - - - name: Post Comment on Issue - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const issueNumber = context.issue.number; - const apiResponse = Buffer.from(process.env.API_RESPONSE, 'base64').toString('utf-8'); - - github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issueNumber, - body: apiResponse - }); - -