|
| 1 | +name: git-bob acting |
| 2 | + |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: [opened] |
| 6 | + issue_comment: |
| 7 | + types: |
| 8 | + - created |
| 9 | + pull_request: |
| 10 | + types: [opened, synchronize] |
| 11 | + pull_request_review_comment: |
| 12 | + types: [ created ] |
| 13 | + |
| 14 | +jobs: |
| 15 | + respond: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + |
| 18 | + steps: |
| 19 | + - name: Checkout code |
| 20 | + uses: actions/checkout@v2 |
| 21 | + |
| 22 | + - name: Print pull request number |
| 23 | + run: | |
| 24 | + echo "Pull Request Number - ${{ github.event.pull_request.number }}" |
| 25 | + echo "Organization - ${{ github.repository_owner }}" |
| 26 | + echo "Repository Name - ${{ github.repository }}" |
| 27 | +
|
| 28 | + - name: Print Job details |
| 29 | + run: | |
| 30 | + echo "Run ID - ${{ github.run_id }}" |
| 31 | + echo "Run No - ${{ github.run_number }}" |
| 32 | + echo "Job - ${{ github.job }}" |
| 33 | + echo "Job ID - ${{ github.job_id }}" |
| 34 | +
|
| 35 | + - name: Set up Python |
| 36 | + uses: actions/setup-python@v2 |
| 37 | + with: |
| 38 | + python-version: 3.x |
| 39 | + |
| 40 | + - name: Install dependencies |
| 41 | + run: | |
| 42 | + python -m pip install --upgrade pip |
| 43 | + pip install git-bob==0.22.1 |
| 44 | + # pip install -r requirements.txt |
| 45 | + |
| 46 | + |
| 47 | + - name: Run git-bob |
| 48 | + env: |
| 49 | + GIT_BOB_AGENT_NAME: "git-bob" |
| 50 | + GIT_BOB_EXTENSIONS_FILTER_REGEXP: ".*" |
| 51 | + GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}" |
| 52 | + ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" |
| 53 | + GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" |
| 54 | + OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" |
| 55 | + MISTRAL_API_KEY: "${{ secrets.MISTRAL_API_KEY }}" |
| 56 | + GH_MODELS_API_KEY: "${{ secrets.GH_MODELS_API_KEY }}" |
| 57 | + KISSKI_API_KEY: "${{ secrets.KISSKI_API_KEY }}" |
| 58 | + BLABLADOR_API_KEY: "${{ secrets.BLABLADOR_API_KEY }}" |
| 59 | + DEEPSEEK_API_KEY: "${{ secrets.DEEPSEEK_API_KEY }}" |
| 60 | + GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" |
| 61 | + GITLAB_API_KEY: "${{ secrets.GITLAB_API_KEY }}" |
| 62 | + E_INFRA_CZ_API_KEY: "${{ secrets.E_INFRA_CZ_API_KEY }}" |
| 63 | + GITHUB_RUN_ID: "${{ github.run_id }}" |
| 64 | + TWINE_USERNAME: "${{ secrets.TWINE_USERNAME }}" |
| 65 | + TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD }}" |
| 66 | + SYSTEM_MESSAGE: | |
| 67 | + You are an extremely skilled scientific writer and educator. Your name is git-bob. You are sometimes called github-actions bot. |
| 68 | + You can solve writing and reviewing tasks. You always write text in files in German. You just sometimes answers in Enlish in discussions. |
| 69 | + You cannot retrieve information from other sources but from github.com. |
| 70 | + Do not claim anything that you don't know. |
| 71 | + In case you are asked to review text, you focus on the quality of the text. Assume the target audience is a general audience. |
| 72 | + VISION_SYSTEM_MESSAGE: | |
| 73 | + You are an AI-based vision model with excellent skills when it comes to describing image. When describing an image, you typically explain: |
| 74 | + * What is shown in the image. |
| 75 | + * If the image shows clearly distinct objects in its channels, these structures are listed for each channel individually. |
| 76 | + * You speculate how the image was acquired. |
| 77 | + run: | |
| 78 | + git-bob github-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }} |
0 commit comments