0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-20 21:06:00 -05:00
forgejo/modules
Bruno Sofiato 689fb82a70
Inclusion of rename organization api (#33303)
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
2025-02-02 12:01:58 +01:00
..
actions
activitypub [PORT] Remove SHA1 for support for ssh rsa signing (#31857) (#5303) 2025-01-17 03:17:10 +00:00
analyze
assetfs chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
auth chore: avoid using gock 2024-12-18 06:40:02 +01:00
avatar
base fix: extend forgejo_auth_token table 2024-11-15 10:59:36 +01:00
cache
card Update 2024-12-30 17:47:34 +01:00
charset chore: fix typos, decap a few i18n strings (#6666) 2025-01-24 05:41:59 +00:00
container chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
csv
emoji
eventsource fix: use better code to group UID and stopwatches 2024-11-16 15:59:02 +01:00
forgefed
generate
git chore: remove usages of sort.Sort (#6689) 2025-01-26 13:30:00 +00:00
gitgraph fix: Proper paring of date for git commits 2024-11-10 22:23:28 +01:00
gitrepo
graceful
hcaptcha
highlight feat: highlight Gradle Kotlin as Kotlin 2024-12-04 22:06:33 +01:00
hostmatcher
html
httpcache
httplib
indexer feat: filepath filter for code search (#6143) 2024-12-22 12:24:29 +00:00
issue/template
json
keying feat: harden keying implementation 2024-12-25 00:10:18 +01:00
label
lfs Revert empty lfs ref name (#33454) 2025-02-02 12:01:58 +01:00
log feat: add a buffer writer to the logger, for internal use (#6551) 2025-01-13 13:40:24 +00:00
markup Remove automatic alt text in markdown image rendering 2025-01-31 21:22:00 +00:00
mcaptcha
metrics
migration feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
nosql
optional
options
packages Alt Linux Apt-Rpm repository support for Forgejo packages. (#6351) 2025-01-22 14:01:49 +00:00
paginator
pprof
private
process feat: add limited execution tracing support 2025-01-05 04:07:49 +01:00
proxy
proxyprotocol
public
queue
recaptcha
references fix trailing comma not matched in the case of alphanumeric issue (#32945) 2024-12-28 19:00:07 +00:00
regexplru
repository feat: allow changing default branch update style 2024-12-23 18:55:25 +03:00
secret fix: teach the doctor about orphaned two_factor rows (#6639) 2025-01-21 17:30:08 +00:00
session
setting fix: load settings for valid user and email check (#6674) 2025-01-24 12:23:15 +00:00
sitemap
ssh fix: ensure correct ssh public key is used for authentication 2024-12-12 05:54:07 +01:00
storage
structs Inclusion of rename organization api (#33303) 2025-02-02 12:01:58 +01:00
svg
sync
system
templates Remove automatic alt text in markdown image rendering 2025-01-31 21:22:00 +00:00
test
testlogger test: add trailing newline to testlogger.go:recordError message 2024-11-14 14:38:47 +01:00
timeutil [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
translation fix(i18n): use translate key as fallback 2025-01-28 15:03:38 +01:00
turnstile
typesniffer Update modules/typesniffer/typesniffer.go 2024-11-28 10:27:33 +00:00
updatechecker
uri
user
util chore: teach set module about iter.Seq (#6676) 2025-01-24 16:45:46 +00:00
validation Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00
web
webhook
zstd