Rename 'vcs' release-creation mode to 'git'

This commit is contained in:
rubenwardy 2020-01-24 20:26:26 +00:00
parent 14faae3fd1
commit beb9c0e959
2 changed files with 8 additions and 8 deletions

View File

@ -139,7 +139,7 @@ def create_release(token, package):
return error(400, option + " is required in the POST data")
if json["method"].lower() != "vcs":
return error(400, "Release-creation methods other than VCS are not supported")
if json["method"].lower() != "git":
return error(400, "Release-creation methods other than git are not supported")
return handleCreateRelease(token, package, json["title"], json["ref"])

View File

@ -26,14 +26,14 @@ You can use the `/api/whoami` to check authentication.
### Releases
* GET `/api/packages/<username>/<name>/releases/`
* POST `/api/packages/<username>/<name>/releases/`
* POST `/api/packages/<username>/<name>/releases/new/`
* Requires authentication.
* `title`: human-readable name of the release.
* `method`: Must be `vcs`.
* `min_protocol`: minimum Minetest protocol version. See [Minetest](#minetest).
* `min_protocol`: maximum Minetest protocol version. See [Minetest](#minetest).
* If `vcs` release-creation method:
* `ref` - git reference.
* `method`: Release-creation method, only `git` is supported.
* `min_protocol`: (Optional) minimum Minetest protocol version. See [Minetest](#minetest).
* `min_protocol`: (Optional) maximum Minetest protocol version. See [Minetest](#minetest).
* If `git` release-creation method:
* `ref` - git reference, eg: `master`.
### Topics