forked from kevadesu/forgejo
Allow changing global wiki editability via the API
The global wiki editability can be set via the web UI, this patch makes it possible to set the same thing via the API too. This is accomplished by adjusting the GET and PATCH handlers of the `/api/v1/repos/{owner}/{repo}` route. The first will include the property when checking the repo's settings, the second allows a repo admin to change the setting too. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
parent
ada8bfa52f
commit
df8e58c5cb
5 changed files with 97 additions and 4 deletions
9
templates/swagger/v1_json.tmpl
generated
9
templates/swagger/v1_json.tmpl
generated
|
@ -20835,6 +20835,11 @@
|
|||
"external_wiki": {
|
||||
"$ref": "#/definitions/ExternalWiki"
|
||||
},
|
||||
"globally_editable_wiki": {
|
||||
"description": "set the globally editable state of the wiki",
|
||||
"type": "boolean",
|
||||
"x-go-name": "GloballyEditableWiki"
|
||||
},
|
||||
"has_actions": {
|
||||
"description": "either `true` to enable actions unit, or `false` to disable them.",
|
||||
"type": "boolean",
|
||||
|
@ -23749,6 +23754,10 @@
|
|||
"type": "string",
|
||||
"x-go-name": "FullName"
|
||||
},
|
||||
"globally_editable_wiki": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "GloballyEditableWiki"
|
||||
},
|
||||
"has_actions": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasActions"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue