Skip to content

Organisation mirror not working #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CrazyWolf13 opened this issue Apr 8, 2025 · 42 comments
Open

Organisation mirror not working #31

CrazyWolf13 opened this issue Apr 8, 2025 · 42 comments

Comments

@CrazyWolf13
Copy link

CrazyWolf13 commented Apr 8, 2025

Hi @jaedle
since the recent update yesterday, it seems to not correctly apply env vars, I started a container with:

docker run -dit \
  --name github-forgejo-mirror \
  --restart unless-stopped \
  -e GITHUB_USERNAME="CrazyWolf13" \
  -e GITEA_URL=<GITEA_URL> \
  -e GITEA_TOKEN=<Forgejo-Token> \
  -e GITHUB_TOKEN=<Github-Token> \
  -e MIRROR_ORGANIZATIONS=true \
  -e INCLUDE_ORGS="ProxmoxVE" \
  -e EXCLUDE_ORGS="SomeOrg" \
  -e PRESERVE_ORG_STRUCTURE=true \
  -e SINGLE_REPO="" \
  -e GITEA_ORGANIZATION="CrazyWolf13-Mirror" \
  -e MIRROR_PRIVATE_REPOSITORIES=true \
  jaedle/mirror-to-gitea:latest

startup log:

Starting to create mirrors...
2025-04-08T09:08:41.002Z INF config={"github":{"username":"CrazyWolf13","token":"[Redacted]","skipForks":false,"privateRepositories":true,"mirrorIssues":false,"mirrorStarred":false,"mirrorOrganizations":true,"useSpecificUser":false,"includeOrgs":["ProxmoxVE"],"excludeOrgs":["SomeOrg"],"preserveOrgStructure":true,"skipStarredIssues":false},"gitea":{"url":"XXXXX","token":"[Redacted]","organization":"CrazyWolf13-mirror","visibility":"public","starredReposOrg":"github"},"dryRun":false,"delay":3600,"include":["*"],"exclude":[""],"singleRun":false} msg=applied configuration
Organization CrazyWolf13-mirror already exists
Processing repositories from 0 organizations
Found 12 repositories to mirror
Repository Chameleons-Beauty is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository dashy is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository auto_gfpgan-installer is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository CrazyWolf13 is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository grade-store is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository ProxmoxVE is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository home-assets is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository dotfiles is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository chezmoi is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository streamlink-webui is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository web-check is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository unix-pwsh is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Waiting for 3600 seconds...

So I expect this to mirror the following:

All my personal repos e.g. https://github.com/CrazyWolf13?tab=repositories --> to the CrazyWolf13-mirror on Gitea, seems to work
Mirror Single_Repo to CrazyWolf13-mirror, works.
Mirror the Org community-scripts for example, which I'm member of and all repos to a new Org called community-scripts on Gitea --> NOT WORKING
Mirror ProxmoxVE, which I'm not a Member, but is in additional to a new Org called ProxmoxVE on Gitea. --> NOT WORKING

Do I need some sort of special permissions on my github_pat?
I added the following:

Image

Thanks!

EDIT: I allow myself to ping @arunavo4 as he is the author of the PR and maybe I understood something wrong about the functionality.

@jaedle
Copy link
Owner

jaedle commented Apr 8, 2025

Thanks for raising the issue and sorry for the (potential) bug.

I will have a look this evening.

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 8, 2025

@CrazyWolf13 Use this endpoint to check if your PAT token has the proper access

curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/orgs/<ORG_NAME>/personal-access-tokens/<PAT_TOKEN>/repositories

Github API Docs

@CrazyWolf13
Copy link
Author

@arunavo4
Thanks for the quick reply!

{
  "message": "Resource not accessible by personal access token",
  "documentation_url": "https://docs.github.com/rest/orgs/personal-access-tokens#list-repositories-a-fine-grained-personal-access-token-has-access-to",
  "status": "403"
}

I've just tested the above, and my PAT where my account is the owner did not work, and a PAT where I made the org community-scripts ower did not work. I added the following permissions: read-access to code, commits, statuses and metadata.

Also wouldn't that setup then require two PATs, one to get my personal repos and then one per org, which at the moment seems not to be possible in this project?

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 8, 2025

@CrazyWolf13

Also wouldn't that setup then require two PATs, one to get my personal repos and then one per org, which at the moment seems not to be possible in this project?

I think we will have to switch to this, will test this setup and make a PR.

Edit: Its a bug will fix it

@CrazyWolf13
Copy link
Author

@arunavo4
Why is this even required?

In my eyes it shouldn't require a per-org access token, if I just want public repos of an org, only if I want the private ones too right?

Also back to the original issue, shouldn't then the ProxmoxVE org be backed up too?

In the current state the project didn't mirror a single repo from any org, not from repos where my GH User is member, nor any of the additional orgs to be backed up.

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 8, 2025

@CrazyWolf13 Yes this seems to be a bug as its public repos should be accessible. Will make a PR for this and fix this issue.

For private you can use the same PAT token but you need to turn on this option.

Image

@jaedle
Copy link
Owner

jaedle commented Apr 12, 2025

@CrazyWolf13 as a quick fix I have just released a docker image with the last working version for your use-case v1.5.0. Feel free to downgrade until this is finally resolved.

Thanks for raising the issue 🙏

@CrazyWolf13
Copy link
Author

@jaedle

Thanks a lot for looking into this!
Really appreciate this app!

Sadly I don't see any real change with the 1.5.0 tag, with the exact same env variables :

Starting to create mirrors...
Starting with the following configuration:
 - GITHUB_USERNAME: CrazyWolf13
 - GITHUB_TOKEN: ****
 - MIRROR_PRIVATE_REPOSITORIES: true
 - GITEA_URL: <SERVER_URL>
 - GITEA_TOKEN: ****
 - SKIP_FORKS: false
 - DRY_RUN: false
 - INCLUDE: *
 - EXCLUDE: 
Found 12 repositories on github
Repository is already mirrored; doing nothing:  CrazyWolf13
<..........>
Repository is already mirrored; doing nothing:  web-check
Waiting for 3600 seconds...

The output just looks different, and all the organisation stuffs seems to be removed again? Now mirroring my users repositorys seems to be working, however this worked before too.

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 15, 2025

@CrazyWolf13 @jaedle
PR #34

#!/bin/bash
# Docker test commands for mirror-to-gitea

# Replace these variables with your actual values
GITHUB_USERNAME="your-github-username"
GITEA_URL="http://your-gitea-instance:3000/"
GITEA_TOKEN="your-gitea-token"
GITHUB_TOKEN="your-github-token"

# Basic test with dry run mode
echo "Running basic test with dry run..."
docker run -it --rm \
  -e GITHUB_USERNAME="$GITHUB_USERNAME" \
  -e GITEA_URL="$GITEA_URL" \
  -e GITEA_TOKEN="$GITEA_TOKEN" \
  -e GITHUB_TOKEN="$GITHUB_TOKEN" \
  -e MIRROR_ORGANIZATIONS=true \
  -e DRY_RUN=true \
  arunavo4/mirror-to-gitea:latest

# Test organization mirroring only (no personal repos)
echo "Running organization mirroring test..."
docker run -it --rm \
  -e GITHUB_USERNAME="$GITHUB_USERNAME" \
  -e GITEA_URL="$GITEA_URL" \
  -e GITEA_TOKEN="$GITEA_TOKEN" \
  -e GITHUB_TOKEN="$GITHUB_TOKEN" \
  -e MIRROR_ORGANIZATIONS=true \
  -e ONLY_MIRROR_ORGS=true \
  -e PRESERVE_ORG_STRUCTURE=true \
  -e DRY_RUN=true \
  arunavo4/mirror-to-gitea:latest

# Test with specific organizations included
echo "Running test with specific organizations..."
docker run -it --rm \
  -e GITHUB_USERNAME="$GITHUB_USERNAME" \
  -e GITEA_URL="$GITEA_URL" \
  -e GITEA_TOKEN="$GITEA_TOKEN" \
  -e GITHUB_TOKEN="$GITHUB_TOKEN" \
  -e MIRROR_ORGANIZATIONS=true \
  -e INCLUDE_ORGS="org1,org2" \
  -e PRESERVE_ORG_STRUCTURE=true \
  -e DRY_RUN=true \
  arunavo4/mirror-to-gitea:latest

# Uncomment to run with actual mirroring (no dry run)
# echo "Running actual mirroring..."
# docker run -it --rm \
#   -e GITHUB_USERNAME="$GITHUB_USERNAME" \
#   -e GITEA_URL="$GITEA_URL" \
#   -e GITEA_TOKEN="$GITEA_TOKEN" \
#   -e GITHUB_TOKEN="$GITHUB_TOKEN" \
#   -e MIRROR_ORGANIZATIONS=true \
#   -e ONLY_MIRROR_ORGS=true \
#   -e PRESERVE_ORG_STRUCTURE=true \
#   -e DRY_RUN=false \
#   arunavo4/mirror-to-gitea:latest

# Uncomment to run as a background service
# echo "Running as background service..."
# docker run -d --name mirror-to-gitea \
#   -e GITHUB_USERNAME="$GITHUB_USERNAME" \
#   -e GITEA_URL="$GITEA_URL" \
#   -e GITEA_TOKEN="$GITEA_TOKEN" \
#   -e GITHUB_TOKEN="$GITHUB_TOKEN" \
#   -e MIRROR_ORGANIZATIONS=true \
#   -e ONLY_MIRROR_ORGS=true \
#   -e PRESERVE_ORG_STRUCTURE=true \
#   -e DRY_RUN=false \
#   arunavo4/mirror-to-gitea:latest

@arunavo4
Copy link
Contributor

The README now also contains how to fix any issues and the log also shows why it fails in mirroring orgs if it fails

@CrazyWolf13

This comment has been minimized.

@CrazyWolf13
Copy link
Author

Ah got it, it's only available for arm, I have amd_64.

@arunavo4
Copy link
Contributor

@CrazyWolf13 Sorry My bad i pushed only from my macbook so there is only arm image. Try again I have added build for other platforms also now.

@CrazyWolf13
Copy link
Author

@arunavo4 Thanks!

Just deployed, and it seemed to create the org ProxmoxVE (that however was the wrong org, which contains nothing: https://github.com/ProxmoxVE )
Using the org Proxmox, no org was created and nothing mirrored: https://github.com/Proxmox

Starting to create mirrors...
2025-04-15T06:55:18.287Z INF config={"github":{"username":"CrazyWolf13","token":"[Redacted]","skipForks":false,"privateRepositories":true,"mirrorIssues":false,"mirrorStarred":false,"mirrorOrganizations":true,"onlyMirrorOrgs":false,"useSpecificUser":false,"includeOrgs":["Proxmox"],"excludeOrgs":[],"preserveOrgStructure":true,"skipStarredIssues":false},"gitea":{"url":"http://10.10.20.30:3000","token":"[Redacted]","organization":"CrazyWolf13-mirror","visibility":"public","starredReposOrg":"github"},"dryRun":false,"delay":3600,"include":["*"],"exclude":[""],"singleRun":false} msg=applied configuration
Organization CrazyWolf13-mirror already exists
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
Successfully found organization: Proxmox
Found 1 organizations: proxmox
Filtering to include only these organizations: Proxmox
Processing repositories from 0 organizations: 
No organizations to process after filtering. Check your INCLUDE_ORGS and EXCLUDE_ORGS settings.
Found 12 repositories to mirror
Fetching GitHub organizations for mirroring...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
Using public endpoint to fetch organizations for user: CrazyWolf13
Direct public API call response status: 200
Direct public API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
Successfully found organization: Proxmox
Found 1 organizations: proxmox
Filtering to include only these organizations: Proxmox
Found 0 GitHub organizations to mirror: 
No organizations to mirror after filtering. Check your INCLUDE_ORGS and EXCLUDE_ORGS settings.
Repository auto_gfpgan-installer is already mirrored in organization CrazyWolf13-mirror; doing nothing.
<......>
Repository chezmoi is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Waiting for 3600 seconds...

I expect the following:

  • community-scripts org should definitely be mirrored, as I'm member and it's public.
  • Proxmox Org should be mirrored with it's 74 repos, however not even the org was created.

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 15, 2025

@CrazyWolf13 please share your options that you ran this with, also I am assuming you are a member of Proxmox Org?

@CrazyWolf13
Copy link
Author

@arunavo4 The options are listed on the top in the run command right?
The Token is made with the following:

Image

No I'm not a member of the ProxmoxVE org, but why would I need to be?
It's a public org, so I should be able to fetch these?

I think I once got that working when experimenting with python.

@arunavo4
Copy link
Contributor

@CrazyWolf13 Hey I think we have a misunderstanding here this only mirrors what you are a member / owner of. THis option does not mirror random public repos that you specify. But I understand the use case. Let me add this feature in.

@CrazyWolf13
Copy link
Author

Update there seems to be a lower/highcase problem, I entered the following in the INCLUDE_ORGS="Proxmox", using "proxmox" it worked

@arunavo4
Copy link
Contributor

@CrazyWolf13 It worked ? ohk casuse alright i get it the endpoint to fetch is same. will fix the lower/ uppeer case issue

@CrazyWolf13
Copy link
Author

@arunavo4
No it's working fine, that repo is currently being mirrored.

What I don't understand, is why the orgs I'm member are not mirrored/detected.

Do I need a special token for that?

@arunavo4
Copy link
Contributor

@CrazyWolf13 I have tested it with my orgs that I am a memebr of and it works fine, you do need to setup this screen

Image

Can you show me the error where its unable to find it ?

@arunavo4
Copy link
Contributor

@CrazyWolf13 You can see here I try to mirror my orgs I am a member of Two of the Orgs dont have the right permissons set and one of them has the permissions set so that works

Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
GET /orgs/Gameplex-labs - 403 with id D0DD:B7167:1F2B96:24E515:67FE0859 in 305ms


ERROR: The 'Gameplex-labs' organization has a policy that forbids access via fine-grained personal access tokens with a lifetime greater than 366 days.

Please adjust your token's lifetime or create a new token with a shorter lifetime.
See the error message for details: The 'Gameplex-labs' organization forbids access via a fine-grained personal access tokens if the token's lifetime is greater than 366 days. Please adjust your token's lifetime at the following URL: https://github.com/settings/personal-access-tokens/5859585 - https://docs.github.com/rest/orgs/orgs#get-an-organization

Successfully found organization: uiastra
GET /orgs/Neucruit - 403 with id D0DD:B7167:1F2BF8:24E58E:67FE085A in 274ms


ERROR: The 'Neucruit' organization has a policy that forbids access via fine-grained personal access tokens with a lifetime greater than 366 days.

Please adjust your token's lifetime or create a new token with a shorter lifetime.
See the error message for details: The 'Neucruit' organization forbids access via a fine-grained personal access tokens if the token's lifetime is greater than 366 days. Please adjust your token's lifetime at the following URL: https://github.com/settings/personal-access-tokens/5859585 - https://docs.github.com/rest/orgs/orgs#get-an-organization

Found 1 organizations: uiastra
Processing repositories from 1 organizations: uiastra
Fetching repositories for organization: uiastra
Using search API to fetch both public and private repositories for org: uiastra
Direct search API call response status: 200
Direct search API call found 3 repositories
Found 0 repositories (public and private) for org: uiastra
No repositories found using search API for org: uiastra. Trying standard API...
Found 3 repositories using standard API for org: uiastra
Only mirroring organization repositories
Found 2 repositories to mirror

@CrazyWolf13
Copy link
Author

@arunavo4
Thanks!

Image

Does the INCLUDE_ORGS actually limit it to only what is entered there?

I also don't see any error, in any of the orgs I'm a member.

Who is the owner of your GITHUB_PAT?

Image

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 15, 2025

@CrazyWolf13 Yes it will only match proxmox.

I will make this seperate for public repos and own repos need to add some clarity.

Who is the owner of your GITHUB_PAT?

I am the owner of the PAT token

@CrazyWolf13
Copy link
Author

@arunavo4

Oh okay, got it.
I removed that ENV var, but now it seems to mirror your orgs?
are they possibly hardcoded?

Image

@arunavo4
Copy link
Contributor

@CrazyWolf13 Yea cleaning it up

@arunavo4
Copy link
Contributor

@CrazyWolf13 Go ahead and test this out new option PUBLIC_ORGS added

docker container run \
 -d \
 --restart always \
 -e GITHUB_USERNAME=github-user \
 -e GITEA_URL=https://your-gitea.url \
 -e GITEA_TOKEN=please-exchange-with-token \
 -e GITHUB_TOKEN=your-github-token \
 -e MIRROR_PUBLIC_ORGS=true \
 -e PUBLIC_ORGS=proxmox \
 -e PRESERVE_ORG_STRUCTURE=true \
arunavo4/mirror-to-gitea:latest

Also you dont seem to be member of any organisation. So thats why 0 orgs to mirror.

Image

@CrazyWolf13
Copy link
Author

@arunavo4

Hmm weird, I'm member of two orgs, one is private and one should be public: community-scripts:

Image

Image

@arunavo4
Copy link
Contributor

@CrazyWolf13 Weird cannot see you here also in community-scripts

Image

@CrazyWolf13
Copy link
Author

@arunavo4
Just tested with the latest update:

Organization CrazyWolf13-mirror already exists
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
No organizations specified in INCLUDE_ORGS. Skipping direct organization checks.
Found 12 repositories to mirror
Fetching GitHub organizations for mirroring...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
Using public endpoint to fetch organizations for user: CrazyWolf13
Direct public API call response status: 200
Direct public API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
No organizations specified in INCLUDE_ORGS. Skipping direct organization checks.
Waiting for 3600 seconds...

Seems like as a side effect now it doues not list/run single repo migration.

@arunavo4
Copy link
Contributor

@CrazyWolf13 what do you mean by single repo migration? Did you use the SINGLE_REPO Option?

@CrazyWolf13
Copy link
Author

@arunavo4
Oh got it, seems like I need to change this to public:

Image

Though I would expect a Github_PAT to give access to see what orgs a user is member of, even if not directly giving access to org content.

Now it seems to detect the org :)

However it only created the org on gitea and did not migrate any repos:

Found 12 repositories to mirror
Fetching GitHub organizations for mirroring...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
Using public endpoint to fetch organizations for user: CrazyWolf13
Direct public API call response status: 200
Direct public API call found 1 organizations
Found 1 organizations: community-scripts
Found 1 GitHub organizations to mirror: community-scripts
Preparing Gitea organization for GitHub organization: community-scripts
Created organization: community-scripts

@arunavo4
Copy link
Contributor

arunavo4 commented Apr 15, 2025

@CrazyWolf13 Try now, added more debuggin to help

@CrazyWolf13
Copy link
Author

@arunavo4
Still doesn't seem to mirror repos of community-scripts:

Fetching repositories from GitHub...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
No organizations specified in INCLUDE_ORGS. Skipping direct organization checks.
Fetched 12 repositories from GitHub.
Found 12 repositories to mirror
Fetching GitHub organizations for mirroring...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
Using public endpoint to fetch organizations for user: CrazyWolf13
Direct public API call response status: 200
Direct public API call found 1 organizations
Found 1 organizations: community-scripts
Found 1 GitHub organizations to mirror: community-scripts
Preparing Gitea organization for GitHub organization: community-scripts
Organization community-scripts already exists
Starting to mirror 12 repositories...
Repositories to mirror:
1. CrazyWolf13/auto_gfpgan-installer
2. CrazyWolf13/Chameleons-Beauty
3. CrazyWolf13/CrazyWolf13
4. CrazyWolf13/dashy
5. CrazyWolf13/dotfiles
6. CrazyWolf13/grade-store
7. CrazyWolf13/home-assets
8. CrazyWolf13/ProxmoxVE
9. CrazyWolf13/streamlink-webui
10. CrazyWolf13/unix-pwsh
11. CrazyWolf13/web-check
12. CrazyWolf13/chezmoi
Repository CrazyWolf13 is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository dashy is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository Chameleons-Beauty is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository auto_gfpgan-installer is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository dotfiles is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository ProxmoxVE is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository home-assets is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository grade-store is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository streamlink-webui is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository chezmoi is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository unix-pwsh is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Repository web-check is already mirrored in organization CrazyWolf13-mirror; doing nothing.
Waiting for 3600 seconds...

@arunavo4
Copy link
Contributor

@CrazyWolf13 Try again, Added more logging to figure out the issue.

@CrazyWolf13
Copy link
Author

@arunavo4
Seems like it's still not fetching repos of that org I'm member of:

Fetching repositories from GitHub...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
No organizations found through standard endpoints. Trying direct API calls to specific organizations.
No organizations specified in INCLUDE_ORGS. Skipping direct organization checks.
Fetching public organization repositories...
Attempting to fetch repositories from these public organizations: Proxmox
Fetching repositories for public organization: Proxmox
Successfully found public organization: Proxmox
Direct API call response status: 200
Direct API call found 74 repositories
Found 74 public repositories for org: Proxmox
Found a total of 74 repositories from public organizations
Fetched 86 repositories from GitHub.
Found 85 repositories to mirror
Fetching GitHub organizations for mirroring...
Using authenticated user endpoint to fetch organizations
Direct API call response status: 200
Direct API call found 0 organizations
Paginated API call found 0 organizations
Using public endpoint to fetch organizations for user: CrazyWolf13
Direct public API call response status: 200
Direct public API call found 1 organizations
Found 1 organizations: community-scripts
Found 1 GitHub organizations to mirror: community-scripts
Preparing Gitea organization for GitHub organization: community-scripts
Organization community-scripts already exists
Processing public organizations...
Preparing Gitea organization for public GitHub organization: Proxmox
Organization Proxmox already exists
Starting to mirror 85 repositories...
Repositories to mirror:
..... following a list of all my personal repos and the 73 from proxmox org.

Image

@arunavo4
Copy link
Contributor

@CrazyWolf13 No more time today will come back in a few days and will help fix this

@CrazyWolf13
Copy link
Author

CrazyWolf13 commented Apr 15, 2025

Alright, sure :)

btw. now it seems to be fixed for me with the latest commit!

Maybe @jaedle can also test some scenarios, as with the current setup there are near coutless scenarious to be tested.

Edit: From my side everything seems to be working.

Only Private Orgs seem to be not detected at all, but maybe these require a special PAT, maybe this needs some clarification in the docs if so.

I'll try to test some more possible scenarios.

@arunavo4
Copy link
Contributor

Hi @CrazyWolf13
Have been busy with other things, but this weekend I wanted to fix it for myself and needed more flexibilty so I cooked something up. Gitea-Mirror
Fixed all the issues and added a proper Web UI.
Let me know what you think.

@CrazyWolf13
Copy link
Author

@arunavo4

Wow thanks, this looks exciting!!

Ui looks great, is this nextjs?

Will take a closer look during the day :)

@arunavo4
Copy link
Contributor

arunavo4 commented May 19, 2025

Ui looks great, is this nextjs?

@CrazyWolf13
I was a bit bored of nextjs. So thought of trying astro with react this time.

@jaedle
Copy link
Owner

jaedle commented May 19, 2025

Hi @CrazyWolf13
Have been busy with other things, but this weekend I wanted to fix it for myself and needed more flexibilty so I cooked something up. Gitea-Mirror
Fixed all the issues and added a proper Web UI.
Let me know what you think.

That looks pretty nice.
If your product turns out to be usable, I guess that may be worthy successor 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants