Skip to content

Commit 0ab7e1b

Browse files
committed
Initial commit
0 parents  commit 0ab7e1b

26 files changed

Lines changed: 261025 additions & 0 deletions

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/workflows/book.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
name: deploy-book
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
deploy-book:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pages: write
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Python 3.9
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.9
22+
cache: pip
23+
24+
- name: Install dependencies
25+
run: pip install -r requirements.txt
26+
27+
- name: Build the book
28+
run: |
29+
jupyter-book build .
30+
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: "_build/html"
35+
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v4
39+

.github/workflows/git-bob.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_build/
2+
.ipynb_checkpoints
3+
.idea
4+
5+
generator.ipynb

0 commit comments

Comments
 (0)