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
path: root/doc
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-29 16:37:42 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-29 16:37:42 +0400
commit6fdd9008272f268b05aa498a79dc200da52f7bbc (patch)
tree1283fe1d7b648f945e5ca97be2dffbbc911fe922 /doc
parentec837932d0296e06ec3d9ca6cf434a62439e39da (diff)
parent28de31f5200d908551d8372fed7511df80e284fd (diff)
Merge pull request #7014 from asedge/api_create_tag
Add CreateTagService. Use new service to allow tag creation through API.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/repositories.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index ecb0fa3f6a0..26ae3e87232 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -37,6 +37,40 @@ Parameters:
]
```
+## Create a new tag
+
+Creates new tag in the repository that points to the supplied ref.
+
+```
+POST /projects/:id/repository/tags
+```
+
+Parameters:
+
++ `id` (required) - The ID of a project
++ `tag_name` (required) - The name of a tag
++ `ref` (required) - Create tag using commit sha, another tag name, or branch name.
+
+```json
+[
+ {
+ "name": "v1.0.0",
+ "commit": {
+ "id": "2695effb5807a22ff3d138d593fd856244e155e7",
+ "parents": [],
+ "message": "Initial commit",
+ "authored_date": "2012-05-28T04:42:42-07:00",
+ "author_name": "John Smith",
+ "author email": "john@example.com",
+ "committer_name": "Jack Smith",
+ "committed_date": "2012-05-28T04:42:42-07:00",
+ "committer_email": "jack@example.com"
+ },
+ "protected": false
+ }
+]
+```
+
## List repository tree
Get a list of repository files and directories in a project.