-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add organization renaming API #32995
Comments
Please. I think Endpoint supports renaming organizations. Of course, a new clear endpoint is necessary, and maybe we need to have a more restricted check to determine whether it's a user or an organization. |
Hey @lunny I've confirmed that the Hey I'll write a PR that creates this new endpoint and summit it for you guys |
Olá @bsofiato. Are you still working on this issue? |
@cclvi256 yeap. I had some health issues at the end of the year, but I'll issue the PR today or tomorrow :) |
This adds an endpoint (`/orgs/{org}/rename`) to rename organizations. I've modeled the endpoint using the rename user endpoint -- `/admin/users/{username}/rename` -- as base. It is the 1st time I wrote a new API endpoint (I've tried to follow the rename users endpoint code while writing it). So feel free to ping me if there is something wrong or missing. Resolves #32995 --------- Signed-off-by: Bruno Sofiato <[email protected]> Co-authored-by: delvh <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
This adds an endpoint (`/orgs/{org}/rename`) to rename organizations. I've modeled the endpoint using the rename user endpoint -- `/admin/users/{username}/rename` -- as base. It is the 1st time I wrote a new API endpoint (I've tried to follow the rename users endpoint code while writing it). So feel free to ping me if there is something wrong or missing. Resolves go-gitea#32995 --------- Signed-off-by: Bruno Sofiato <[email protected]> Co-authored-by: delvh <[email protected]> Co-authored-by: wxiaoguang <[email protected]> (cherry picked from commit 040c830) Conflicts: routers/api/v1/admin/user.go ignore this unrelated change templates/swagger/v1_json.tmpl regenerate tests/integration/api_org_test.go port as a standalone test instead of refactoring the tests
Feature Description
How do you guys feel about adding an API that renames an organization ?.
We already have an API to rename users and I was think of adding one for organizations in the same vein (i.e., a post on
/orgs/{org}/rename
).If you guys think this is a worth feature, I'd gladly submit a PR.
Screenshots
No response
The text was updated successfully, but these errors were encountered: