Skip to content
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

Ability to set user avatar via CLI #26282

Open
CodeShakingSheep opened this issue Aug 1, 2023 · 3 comments
Open

Ability to set user avatar via CLI #26282

CodeShakingSheep opened this issue Aug 1, 2023 · 3 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@CodeShakingSheep
Copy link
Contributor

CodeShakingSheep commented Aug 1, 2023

Feature Description

I think it would be great if Gitea had the ability to set a user's avatar via CLI. I would love to have an additional flag avatar. Either during the creation of a user or a dedicated command.

  • gitea admin user create --avatar
  • gitea admin user change-avatar --avatar

With avatar specifying either a URI path to the image or image data as Base64 encoded text.

Screenshots

No response

@CodeShakingSheep CodeShakingSheep added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Aug 1, 2023
@silverwind
Copy link
Member

API was added in #25369

@CodeShakingSheep
Copy link
Contributor Author

API was added in #25369

Thanks for hinting me at this. As far as I can see, only setting avatars via API was implemented (which is great already). As I'm using CLI to add a batch of users I would prefer to set the avatars via CLI as well. So, I'd leave this issue open and change the title to only include CLI and not API anymore. What do you think?

@silverwind
Copy link
Member

Yeah I guess that is fine.

@CodeShakingSheep CodeShakingSheep changed the title Ability to set user avatar via CLI / API Ability to set user avatar via CLI Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants