mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-19 04:16:53 -05:00
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 <bruno.sofiato@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 040c830dec5c727a56d16df62b1673bce6fca645) 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 |
||
---|---|---|
.. | ||
action.go | ||
activity.go | ||
activitypub.go | ||
admin_user.go | ||
attachment.go | ||
commit_status.go | ||
commit_status_test.go | ||
cron.go | ||
doc.go | ||
fork.go | ||
git_blob.go | ||
git_hook.go | ||
hook.go | ||
issue.go | ||
issue_comment.go | ||
issue_label.go | ||
issue_milestone.go | ||
issue_reaction.go | ||
issue_stopwatch.go | ||
issue_test.go | ||
issue_tracked_time.go | ||
lfs_lock.go | ||
mirror.go | ||
miscellaneous.go | ||
moderation.go | ||
nodeinfo.go | ||
notifications.go | ||
org.go | ||
org_member.go | ||
org_team.go | ||
package.go | ||
pull.go | ||
pull_review.go | ||
quota.go | ||
release.go | ||
repo.go | ||
repo_actions.go | ||
repo_branch.go | ||
repo_collaborator.go | ||
repo_commit.go | ||
repo_compare.go | ||
repo_file.go | ||
repo_flags.go | ||
repo_key.go | ||
repo_note.go | ||
repo_refs.go | ||
repo_tag.go | ||
repo_topic.go | ||
repo_tree.go | ||
repo_watch.go | ||
repo_wiki.go | ||
secret.go | ||
settings.go | ||
status.go | ||
task.go | ||
user.go | ||
user_app.go | ||
user_email.go | ||
user_gpgkey.go | ||
user_key.go | ||
variable.go | ||
visible_type.go | ||
workflow.go |