fix(team,repo,org,wiki,auth): detect a kept admin permission, validate topics up front, page public members, name disabled wikis, treat auth switch's account as --user

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 20:40:25 +02:00
1 parent 339527b26c
commit dd2ec74d96
12 files changed
+289 -64

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ func TestWikiEditRefusesToOverwriteOrCreate(t *testing.T) {
case r.Method == http.MethodPatch:
patched++
_, _ = w.Write([]byte(`{"title":"Getting Started","content_base64":"eA=="}`))
case r.URL.Path == "/api/v1/repos/alice/x":
_, _ = w.Write([]byte(`{"full_name":"alice/x","has_wiki":true}`))
case r.URL.Path == "/api/v1/repos/alice/x/wiki/page/Draft":
_, _ = w.Write([]byte(`{"title":"Draft","content_base64":"ZHJhZnQ="}`))
case r.URL.Path == "/api/v1/repos/alice/x/wiki/page/Page B":