Closed
Description
- Gitea version (or commit ref): latest
- Git version: try
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
Description
Related #13620
In the repository configuration API, we have pseudo-required parameters which are misleading and can be confusing for users.
My own quote below, the API skips entire sections if you fail to specify that the unit is enabled, regardless of whether it was already enabled or not.
Basically, because you didn't specify
"has_pull_requests": true
the API skipped the PR-related values entirely. 🙃
gitea/routers/api/v1/repo/repo.go
Lines 684 to 728 in 5a991ec
This is somewhat contradictory to the description of the API route itself.
Edit a repository's properties. Only fields that are set will be changed.