Organisation mirror not working #7

Open
opened 2025-07-08 08:33:05 -04:00 by AtHeartEngineer · 0 comments

Originally created by @CrazyWolf13 on 4/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.

*Originally created by @CrazyWolf13 on 4/8/2025* Hi @jaedle since the recent update yesterday, it seems to not correctly apply env vars, I started a container with: ```bash 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: ```bash 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](https://github.com/user-attachments/assets/f4e58c94-aa8a-4411-98c1-ee31466586c5) 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/mirror-to-gitea#7