mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-26 08:26:22 +01:00
Add has_code to repository REST API (#35214)
similar to how we can enable/disable repos or issues on a repo add the
code unit as option to it.
affects
```
PATCH /repos/{owner}/{repo}
```
---
*Sponsored by Kithara Software GmbH*
This commit is contained in:
9
templates/swagger/v1_json.tmpl
generated
9
templates/swagger/v1_json.tmpl
generated
@@ -24333,6 +24333,11 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasActions"
|
||||
},
|
||||
"has_code": {
|
||||
"description": "either `true` to enable code for this repository or `false` to disable it.",
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasCode"
|
||||
},
|
||||
"has_issues": {
|
||||
"description": "either `true` to enable issues for this repository or `false` to disable them.",
|
||||
"type": "boolean",
|
||||
@@ -27375,6 +27380,10 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasActions"
|
||||
},
|
||||
"has_code": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasCode"
|
||||
},
|
||||
"has_issues": {
|
||||
"type": "boolean",
|
||||
"x-go-name": "HasIssues"
|
||||
|
||||
Reference in New Issue
Block a user