From 44ebd96de192219ac31360caaef5e80e2da8e478 Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:17:51 +0100 Subject: [PATCH 1/8] add git-bob.yml --- git-bob.yml | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 git-bob.yml diff --git a/git-bob.yml b/git-bob.yml new file mode 100644 index 0000000..f80a679 --- /dev/null +++ b/git-bob.yml @@ -0,0 +1,74 @@ +name: git-bob acting + +on: + issues: + types: [opened] + issue_comment: + types: + - created + pull_request: + types: [opened, synchronize] + pull_request_review_comment: + types: [ created ] + +jobs: + respond: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Print pull request number + run: | + echo "Pull Request Number - ${{ github.event.pull_request.number }}" + echo "Organization - ${{ github.repository_owner }}" + echo "Repository Name - ${{ github.repository }}" + + - name: Print Job details + run: | + echo "Run ID - ${{ github.run_id }}" + echo "Run No - ${{ github.run_number }}" + echo "Job - ${{ github.job }}" + echo "Job ID - ${{ github.job_id }}" + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install -r requirements.txt + + + - name: Run git-bob + env: + GIT_BOB_AGENT_NAME: "git-bob" + GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}" + ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" + GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" + OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" + GH_MODELS_API_KEY: "${{ secrets.GH_MODELS_API_KEY }}" + KISSKI_API_KEY: "${{ secrets.KISSKI_API_KEY }}" + BLABLADOR_API_KEY: "${{ secrets.BLABLADOR_API_KEY }}" + GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_RUN_ID: "${{ github.run_id }}" + TWINE_USERNAME: "${{ secrets.TWINE_USERNAME }}" + TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD }}" + SYSTEM_MESSAGE: | + You are an extremely skilled python developer. Your name is git-bob. You are sometimes called github-actions bot. + You can solve programming tasks and review code. + When asked to solve a specific problem, you keep your code changes minimal and only solve the problem at hand. + You cannot retrieve information from other sources but from github.com. + Do not claim anything that you don't know. + In case you are asked to review code, you focus on the quality of the code. + VISION_SYSTEM_MESSAGE: | + You are an AI-based vision model with excellent skills when it comes to describing image. When describing an image, you typically explain: + * What is shown in the image. + * If the image shows clearly distinct objects in its channels, these structures are listed for each channel individually. + * You speculate how the image was acquired. + run: | + git-bob github-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }} From d2ade85d5b8e4c0edb726710cac5809246567361 Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:18:41 +0100 Subject: [PATCH 2/8] Update git-bob.yml add version to install --- git-bob.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bob.yml b/git-bob.yml index f80a679..92c91c7 100644 --- a/git-bob.yml +++ b/git-bob.yml @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . + pip install git-bob==0.4.0 pip install -r requirements.txt From 87edcefaa3e8a209c1479f7a7057c0f6813afdce Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:16:07 +0100 Subject: [PATCH 3/8] Update git-bob.yml --- git-bob.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/git-bob.yml b/git-bob.yml index 92c91c7..eea30ef 100644 --- a/git-bob.yml +++ b/git-bob.yml @@ -42,6 +42,7 @@ jobs: python -m pip install --upgrade pip pip install git-bob==0.4.0 pip install -r requirements.txt + pip install azure-ai-inference - name: Run git-bob From 5232020b1434e97155ba243401f5e56783fae5ed Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:23:38 +0100 Subject: [PATCH 4/8] Update git-bob.yml changed the git-bob version --- git-bob.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bob.yml b/git-bob.yml index eea30ef..b939874 100644 --- a/git-bob.yml +++ b/git-bob.yml @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install git-bob==0.4.0 + pip install git-bob==0.12.0 pip install -r requirements.txt pip install azure-ai-inference From 2a0f1c98753b01622c14b132122f6dca48c74e7d Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:24:25 +0100 Subject: [PATCH 5/8] add requirements.txt for git-bob --- requirements.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..66fd78f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +anthropic +openai +google-generativeai +pygithub +toolz +azure-ai-inference +nbconvert +nbformat +Pillow +matplotlib +numpy +scipy +requests +ipykernel +setuptools +wheel +urllib3 +requests-toolbelt +twine +python-gitlab +python-pptx From 6cab600851046dc4ea3e620003b36262a85855f6 Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:26:50 +0100 Subject: [PATCH 6/8] Update git-bob.yml changed GIT_BOB_LLM_NAME to github_models:gpt-4o --- git-bob.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bob.yml b/git-bob.yml index b939874..268c460 100644 --- a/git-bob.yml +++ b/git-bob.yml @@ -48,7 +48,7 @@ jobs: - name: Run git-bob env: GIT_BOB_AGENT_NAME: "git-bob" - GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}" + GIT_BOB_LLM_NAME: "github_models:gpt-4o" ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" From 9e30fc80dbfe4981ede800fda6505532d8ef47ca Mon Sep 17 00:00:00 2001 From: lea-33 Date: Wed, 4 Dec 2024 16:27:27 +0100 Subject: [PATCH 7/8] moved git-bob worklfow to correct folder --- .github/workflows/git-bob.yml | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/git-bob.yml diff --git a/.github/workflows/git-bob.yml b/.github/workflows/git-bob.yml new file mode 100644 index 0000000..268c460 --- /dev/null +++ b/.github/workflows/git-bob.yml @@ -0,0 +1,75 @@ +name: git-bob acting + +on: + issues: + types: [opened] + issue_comment: + types: + - created + pull_request: + types: [opened, synchronize] + pull_request_review_comment: + types: [ created ] + +jobs: + respond: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Print pull request number + run: | + echo "Pull Request Number - ${{ github.event.pull_request.number }}" + echo "Organization - ${{ github.repository_owner }}" + echo "Repository Name - ${{ github.repository }}" + + - name: Print Job details + run: | + echo "Run ID - ${{ github.run_id }}" + echo "Run No - ${{ github.run_number }}" + echo "Job - ${{ github.job }}" + echo "Job ID - ${{ github.job_id }}" + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install git-bob==0.12.0 + pip install -r requirements.txt + pip install azure-ai-inference + + + - name: Run git-bob + env: + GIT_BOB_AGENT_NAME: "git-bob" + GIT_BOB_LLM_NAME: "github_models:gpt-4o" + ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" + GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" + OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" + GH_MODELS_API_KEY: "${{ secrets.GH_MODELS_API_KEY }}" + KISSKI_API_KEY: "${{ secrets.KISSKI_API_KEY }}" + BLABLADOR_API_KEY: "${{ secrets.BLABLADOR_API_KEY }}" + GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_RUN_ID: "${{ github.run_id }}" + TWINE_USERNAME: "${{ secrets.TWINE_USERNAME }}" + TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD }}" + SYSTEM_MESSAGE: | + You are an extremely skilled python developer. Your name is git-bob. You are sometimes called github-actions bot. + You can solve programming tasks and review code. + When asked to solve a specific problem, you keep your code changes minimal and only solve the problem at hand. + You cannot retrieve information from other sources but from github.com. + Do not claim anything that you don't know. + In case you are asked to review code, you focus on the quality of the code. + VISION_SYSTEM_MESSAGE: | + You are an AI-based vision model with excellent skills when it comes to describing image. When describing an image, you typically explain: + * What is shown in the image. + * If the image shows clearly distinct objects in its channels, these structures are listed for each channel individually. + * You speculate how the image was acquired. + run: | + git-bob github-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }} From b0bfc9ee93db1968b7bbb402a439e34b6727b9d1 Mon Sep 17 00:00:00 2001 From: Lea Gihlein <85543649+lea-33@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:28:47 +0100 Subject: [PATCH 8/8] Delete git-bob.yml --- git-bob.yml | 75 ----------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 git-bob.yml diff --git a/git-bob.yml b/git-bob.yml deleted file mode 100644 index 268c460..0000000 --- a/git-bob.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: git-bob acting - -on: - issues: - types: [opened] - issue_comment: - types: - - created - pull_request: - types: [opened, synchronize] - pull_request_review_comment: - types: [ created ] - -jobs: - respond: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Print pull request number - run: | - echo "Pull Request Number - ${{ github.event.pull_request.number }}" - echo "Organization - ${{ github.repository_owner }}" - echo "Repository Name - ${{ github.repository }}" - - - name: Print Job details - run: | - echo "Run ID - ${{ github.run_id }}" - echo "Run No - ${{ github.run_number }}" - echo "Job - ${{ github.job }}" - echo "Job ID - ${{ github.job_id }}" - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.x - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install git-bob==0.12.0 - pip install -r requirements.txt - pip install azure-ai-inference - - - - name: Run git-bob - env: - GIT_BOB_AGENT_NAME: "git-bob" - GIT_BOB_LLM_NAME: "github_models:gpt-4o" - ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" - GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" - OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" - GH_MODELS_API_KEY: "${{ secrets.GH_MODELS_API_KEY }}" - KISSKI_API_KEY: "${{ secrets.KISSKI_API_KEY }}" - BLABLADOR_API_KEY: "${{ secrets.BLABLADOR_API_KEY }}" - GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" - GITHUB_RUN_ID: "${{ github.run_id }}" - TWINE_USERNAME: "${{ secrets.TWINE_USERNAME }}" - TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD }}" - SYSTEM_MESSAGE: | - You are an extremely skilled python developer. Your name is git-bob. You are sometimes called github-actions bot. - You can solve programming tasks and review code. - When asked to solve a specific problem, you keep your code changes minimal and only solve the problem at hand. - You cannot retrieve information from other sources but from github.com. - Do not claim anything that you don't know. - In case you are asked to review code, you focus on the quality of the code. - VISION_SYSTEM_MESSAGE: | - You are an AI-based vision model with excellent skills when it comes to describing image. When describing an image, you typically explain: - * What is shown in the image. - * If the image shows clearly distinct objects in its channels, these structures are listed for each channel individually. - * You speculate how the image was acquired. - run: | - git-bob github-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }}