-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Set user avatar with CLI or API #25344
Comments
On second thought, I think this could be too complex with the cli. Maybe instead just copy the image into the avatars directory and let gitea find it - is that possible? I guess the The filename must be hashed somehow so gitea knows about it? If out of scope, please close this issue. |
I guess it could be added, but 5 arguments on a CLI is already pushing the complexity. It may already be possible via API to set the avatar, and your use case does sound like it may be better done with an API client. |
I didn't know there was an API... Thanks for letting me know! I will tinker with this and report back my solution. |
UPDATE: I checked on |
Yeah, it seems we are lacking both a |
I will start working on this |
This adds an API for uploading and Deleting Avatars for of Users, Repos and Organisations. I'm not sure, if this should also be added to the Admin API. Resolves #25344 --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
Feature Description
We use automation (ansible) to setup multiple servers, each has gitea and our ci/cd stuff. We create the same users each time for our team members.
One can create a user with the CLI: username, password, email, is_admin.
But it's not possible to specify the avatar. It would be nice to do that with the CLI (or some other method, maybe just put the images in a certain directory using a certain filename?).
Screenshots
No response
The text was updated successfully, but these errors were encountered: