when migrating a private repo from an organization, the following error occurs:
gitea-github-migrator_linux_amd64 migrate --gh-token $GITHUB_TOKEN --token $GITEA_TOKEN --owner 1 --gh-repo $ORGA/$REPO --url $GITEA_SERVER
panic: error while migrating repo[ORGA/REPO]: Clone: exit status 128 - fatal: could not read Username for 'https://github.com': No such device or address
This patch fices htat by allowing to infuse the correct credentials like this:
env GITHUB_PASS=$GITHUB_TOKEN GITHUB_USER=jnweiger ~/go/bin/gitea-github-migrator migrate --gh-token $GITHUB_TOKEN --token $GITEA_TOKEN --owner 1 --gh-repo $ORGA/$REPO --url $GITEA_SERVER
Not the nicest implementation, but this gets me going. Thank you for a great tool!
A tool to migrate [GitHub](https://github.com) Repositories to [Gitea](https://gitea.io) including all issues, labels, milestones
A tool to migrate [GitHub](https://github.com) Repositories to [Gitea](https://gitea.io) including all issues, labels, milestones
and comments.
and comments.
@ -14,11 +15,13 @@ Migrates:
- [x] Milestones
- [x] Milestones
- [x] Comments
- [x] Comments
- [ ] Users
- [ ] Users
- [ ] Pull Requests
- [x] Pull Requests (as issue)
- [ ] Statuses
- [ ] Statuses
## Installation
## Installation
### From source
```bash
```bash
go get git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
go get git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
cd $GOPATH/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
cd $GOPATH/src/git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
@ -26,6 +29,12 @@ dep ensure
go install
go install
```
```
### From Binary
We provide binaries of master builds and all releases at our [minio storage server](https://storage.h.jonasfranz.software/minio/gitea-github-migrator/dist/).
Additionally we provide them for every release as release attachment under [releases](https://git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator/releases).
You don't need any dependencies except the binary to run the migrator.