Skip to content

add GITEA_USER#3

Open
MuratovAS wants to merge 1 commit into
maxkratz:masterfrom
MuratovAS:gitea-user
Open

add GITEA_USER#3
MuratovAS wants to merge 1 commit into
maxkratz:masterfrom
MuratovAS:gitea-user

Conversation

@MuratovAS

Copy link
Copy Markdown

I added the GITEA_USER parameter, which allows you to specify the user under whose name repositories will be created.
If the value is missing, a user will be created according to the name on github.
I think this function is useful, it will allow you to separate mirrors and local repositories.

Comment thread github2gitea-mirror
# ACCESS_TOKEN = Gitea token
# GITERA_URL = Gitea URL
# GITHUB_TOKEN = GitHub personal access token
# GITEA_USER = Which user creates the repository

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MuratovAS and thank you for your contribution!

I have one question/remark to your PR:
Why did you choose to specify the Gitea (target) user as an environment variable? All other parameters (besides the GITEA_URL which also should be fixed) get passed as command line arguments (e.g., --user for the GitHub user name).

Hence, I propose that you change/extend your PR to introduce a new command line argument --gitea-user/-g or --target-user/-t to pass this information to the script instead of the ENV.

@maxkratz

maxkratz commented Apr 1, 2026

Copy link
Copy Markdown
Owner

@MuratovAS: Same as in #4 (comment). I am sorry for the long delay.

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

Successfully merging this pull request may close these issues.

2 participants