Closed
Description
- Gitea version (or commit ref): 1.15.0+dev-16-g5f038cd7f
- Git version: 2.30.2
- Operating system: Linux
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) https://try.gitea.io/philfry/testrepository
- No
Description
trying to update some repository's attributes like disabling the issue tracker, pull requests, the wiki, converting it to private, doesn't have any effect.
Screenshots
#!/bin/bash
token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
apiurl="https://try.gitea.io/api/v1"
fullname="philfry/testrepository"
status() {
curl -s \
-H "Accept: application/json" -H "Authorization: token ${token}" \
"${apiurl}/repos/${fullname}" | jq '.|{has_issues,has_projects,has_wiki,private}'
}
setval() {
echo "set $1 to $2"
curl -s -X PATCH \
-H "Accept: application/json" -H "Authorization: token ${token}" \
"${apiurl}/repos/${fullname}" -d "{\"$1\":$2}" | jq .${1}
}
status
setval has_issues false
setval has_projects false
setval has_wiki false
setval private true
status