Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-13 01:52:02 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-13 01:52:02 +0300
commit8f53094f0f22fe208f6f6e0d39037188bf14a937 (patch)
treee2cba2f3521e18ea4da2891e6fcee85de526fcdc /doc/api/tags.md
parentba34045f3120fc52ce714d49778a24c647248500 (diff)
Add API docs and correctly expose release api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'doc/api/tags.md')
-rw-r--r--doc/api/tags.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/api/tags.md b/doc/api/tags.md
index dc69a0c6fbc..0113d4ba049 100644
--- a/doc/api/tags.md
+++ b/doc/api/tags.md
@@ -28,6 +28,10 @@ Parameters:
"2a4b78934375d7f53875269ffd4f45fd83a84ebe"
]
},
+ "release": {
+ "tag": "1.0.0",
+ "description": "Amazing release. Wow"
+ },
"name": "v1.0.0",
"message": null
}
@@ -48,6 +52,7 @@ Parameters:
- `tag_name` (required) - The name of a tag
- `ref` (required) - Create tag using commit SHA, another tag name, or branch name.
- `message` (optional) - Creates annotated tag.
+- `release_description` (optional) - Add release notes to the git tag and store it in the GitLab database.
```json
{
@@ -64,6 +69,10 @@ Parameters:
"2a4b78934375d7f53875269ffd4f45fd83a84ebe"
]
},
+ "release": {
+ "tag": "1.0.0",
+ "description": "Amazing release. Wow"
+ },
"name": "v1.0.0",
"message": null
}
@@ -73,3 +82,25 @@ it will contain the annotation.
It returns 200 if the operation succeed. In case of an error,
405 with an explaining error message is returned.
+
+
+## New release
+
+Add release notes to the existing git tag
+
+```
+PUT /projects/:id/repository/:tag/release
+```
+
+Parameters:
+
+- `id` (required) - The ID of a project
+- `tag` (required) - The name of a tag
+- `description` (required) - Release notes with markdown support
+
+```json
+{
+ "tag": "1.0.0",
+ "description": "Amazing release. Wow"
+}
+```