summaryrefslogtreecommitdiff
path: root/doc/api/repositories.md
diff options
context:
space:
mode:
authorSean Edge <asedge@gmail.com>2014-05-23 18:58:49 -0400
committerSean Edge <asedge@gmail.com>2014-05-23 18:58:49 -0400
commit2490cfbcca368a872a0b66998bf739cc7ded8ae8 (patch)
tree668354a6f925a2bb43ee3f00d7090776aec9885c /doc/api/repositories.md
parent1e6766f9edb2a9bda18e89acef64ee03e8d3b2e4 (diff)
downloadgitlab-ce-2490cfbcca368a872a0b66998bf739cc7ded8ae8.tar.gz
Update documentaiton for create_tag method.
Diffstat (limited to 'doc/api/repositories.md')
-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 858fad0a0b5..f71084c7532 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -35,6 +35,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.