varunsridharan / github-gitea-mirror Goto Github PK
View Code? Open in Web Editor NEWSimple Python Script To Mirror Repository From Github To Gitea
License: MIT License
Simple Python Script To Mirror Repository From Github To Gitea
License: MIT License
Like how to mirror the releases of github, I try to add
def giteaCreateRepo(data,isPrivate,isRepository):
if isPrivate:
data["auth_username"] = config['github']['username']
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
if isRepository:
data["service"] = 'github'
data["wiki"] = True
data["releases"] = True
data["issues"] = True
data["labels"] = True
data["pull_requests"] = True
data["auth_token"] = "{0}".format(config['github']['accesstoken'])
can you tell me some way?
Sir, publicly writing you to say I adore you and your projects and pages finding them having a need to mirror repos automagically from GitHub! Profile, guides, code is great - thanks for this contribution.
Hope all is well.
After adding, some repositories have not been successfully mirrored, and I have been stuck here. How to clear these repositories or is there any other good way?
one of the mistakes:
2023年8月13日 GMT+8 05:27
Migrate repository from failed: Clone: exit status 128 - error: RPC failed; curl 56 OpenSSL SSL_read: OpenSSL/3.1.1: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0
error: 5663 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
The 404 warehouse will always be stuck
Migrate repository from failed: GET https://api.github.com/repos/ch2sh/BatchGuard: 404 Not Found []
Hello!
When the script attempts to mirror a starred repository, my local Gitea instance throws the following error:
[28/01/2023 16:57:47] ⭐ Star'ed Repository : Julow/Unexpected-Keyboard
400 [{"classification":"DeserializationError","message":"json: cannot unmarshal string into Go struct field MigrateRepoOptions.uid of type int64"}] {"repo_name": "Unexpected-Keyboard", "description": "A lightweight virtual keyboard for developers.", "clone_addr": "https://github.com/Julow/Unexpected-Keyboard.git", "mirror": true, "private": false, "uid": "failed", "service": "github", "wiki": true, "auth_token": "redacted"}
I've performed a fresh git clone
, replacing only my config.json
, but it hasn't helped.
What version of Gitea have you tested this against? If the API has changed, I may need to update my local instance.
Thanks! :)
Is your feature request related to a problem? Please describe.
As I run my home code in Kubernetes I would like to deploy your code as container.
Describe the solution you'd like
Either add a container here or I would add to the k8s-at-home repository.
Describe alternatives you've considered
NA
Additional context
I would also create a Helm chart at https://github.com/k8s-at-home/charts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.