File tree 6 files changed +25
-6
lines changed
6 files changed +25
-6
lines changed Original file line number Diff line number Diff line change
1
+ .env
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ COPY --from=builder /opt/venv /opt/venv
19
19
ENV PATH="/opt/venv/bin:$PATH"
20
20
COPY ./src /app
21
21
RUN rm -rf /app/test
22
- CMD ["python" , "/app/main.py" ]
22
+ CMD ["python" , "/app/src/ main.py" ]
Original file line number Diff line number Diff line change 9
9
```
10
10
docker run --rm -it \
11
11
--env-file .env \
12
- --volume $(pwd)/src :/app \
12
+ --volume $(pwd):/app \
13
13
pygithub
14
14
```
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ docker run --rm -it \
4
+ --env-file .env \
5
+ --volume $( pwd) :/app \
6
+ pygithub
Original file line number Diff line number Diff line change 1
1
import base64
2
+ import hashlib
2
3
import os
3
4
from pprint import pprint
4
5
9
10
def main (repo_token ):
10
11
gh = Github (repo_token )
11
12
12
- repository = "josecelano/mandelbrot-explorer "
13
+ repository = "Nautilus-Cyberneering/chinese-ideographs-website "
13
14
14
- repo = gh .get_repo (repository )
15
+ remote_repo = gh .get_repo (repository )
15
16
16
- commit = repo .get_commit ("0dd65f3241250afa591b4ef1d99eec92a59352e5 " )
17
+ commit = remote_repo .get_commit ("79c3511c1eba9329665dc64c1bd55ff4cffeb98b " )
17
18
18
19
pprint (commit )
19
20
20
- issue = repo .get_issue (number = 1 )
21
+ issue = remote_repo .get_issue (number = 1 )
21
22
22
23
pprint (issue )
23
24
25
+ # 1 MB limit
26
+ issue = remote_repo .get_contents (
27
+ "public/images/.gitkeep" , "issue-1-import-base-images" )
28
+
29
+ local_repo = Repo ("/app" )
30
+
31
+ sha = local_repo .git .hash_object ('data/000001-42.600.2.tif' )
32
+
33
+ print ("sha for data/000001-42.600.2.tif (git hash-object data/000001-42.600.2.tif)" , sha )
34
+
35
+
24
36
if __name__ == "__main__" :
25
37
# https://pygithub.readthedocs.io
26
38
repo_token = os .environ ["INPUT_REPO_TOKEN" ]
You can’t perform that action at this time.
0 commit comments