Coder Social home page Coder Social logo

varunsridharan / github-gitea-mirror Goto Github PK

View Code? Open in Web Editor NEW
175.0 4.0 19.0 113 KB

Simple Python Script To Mirror Repository From Github To Gitea

License: MIT License

Python 100.00%
github gitea github-gitea-migration github-mirror gitea-mirror github-gitea-mirror mirror github-mirrors gitea-mirrors gist

github-gitea-mirror's Issues

Like how to mirror the releases of github

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?

Thank you!

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.

Add a Container release

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

After adding, some repositories have not been successfully mirrored

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?

image

image

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 []

Gitea throws error 400 when mirroring starred repository

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! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.