aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-24 20:26:26 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-24 20:27:37 +0000
commitbeb9c0e959d092c3faa54483acdd47c6ec678c3c (patch)
tree39608f2a4aedd97357f09f8524069567d7c0559e
parent14faae3fd16520859d0ca6b371a86c54e91c6756 (diff)
downloadcheatdb-beb9c0e959d092c3faa54483acdd47c6ec678c3c.tar.xz
Rename 'vcs' release-creation mode to 'git'
-rw-r--r--app/blueprints/api/endpoints.py4
-rw-r--r--app/flatpages/help/api.md12
2 files changed, 8 insertions, 8 deletions
diff --git a/app/blueprints/api/endpoints.py b/app/blueprints/api/endpoints.py
index bd17bb5..3cb2c17 100644
--- a/app/blueprints/api/endpoints.py
+++ b/app/blueprints/api/endpoints.py
@@ -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"])
diff --git a/app/flatpages/help/api.md b/app/flatpages/help/api.md
index c836153..b141f2c 100644
--- a/app/flatpages/help/api.md
+++ b/app/flatpages/help/api.md
@@ -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