Commit a5c1b42b authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'patch-5' into 'master'

Update projects.md

## What does this MR do?
Repaired  some examples for a branches in projects.md

See merge request !6018
parents dcea06c6 01a1e392
...@@ -998,6 +998,8 @@ is available before it is returned in the JSON response or an empty response is ...@@ -998,6 +998,8 @@ is available before it is returned in the JSON response or an empty response is
## Branches ## Branches
For more information please consult the [Branches](branches.md) documentation.
### List branches ### List branches
Lists all branches of a project. Lists all branches of a project.
...@@ -1016,56 +1018,46 @@ Parameters: ...@@ -1016,56 +1018,46 @@ Parameters:
"name": "async", "name": "async",
"commit": { "commit": {
"id": "a2b702edecdf41f07b42653eb1abe30ce98b9fca", "id": "a2b702edecdf41f07b42653eb1abe30ce98b9fca",
"parents": [ "parent_ids": [
{ "3f94fc7c85061973edc9906ae170cc269b07ca55"
"id": "3f94fc7c85061973edc9906ae170cc269b07ca55"
}
], ],
"tree": "c68537c6534a02cc2b176ca1549f4ffa190b58ee",
"message": "give Caolan credit where it's due (up top)", "message": "give Caolan credit where it's due (up top)",
"author": { "author_name": "Jeremy Ashkenas",
"name": "Jeremy Ashkenas", "author_email": "jashkenas@example.com",
"email": "jashkenas@example.com"
},
"committer": {
"name": "Jeremy Ashkenas",
"email": "jashkenas@example.com"
},
"authored_date": "2010-12-08T21:28:50+00:00", "authored_date": "2010-12-08T21:28:50+00:00",
"committer_name": "Jeremy Ashkenas",
"committer_email": "jashkenas@example.com",
"committed_date": "2010-12-08T21:28:50+00:00" "committed_date": "2010-12-08T21:28:50+00:00"
}, },
"protected": false "protected": false,
"developers_can_push": false,
"developers_can_merge": false
}, },
{ {
"name": "gh-pages", "name": "gh-pages",
"commit": { "commit": {
"id": "101c10a60019fe870d21868835f65c25d64968fc", "id": "101c10a60019fe870d21868835f65c25d64968fc",
"parents": [ "parent_ids": [
{ "9c15d2e26945a665131af5d7b6d30a06ba338aaa"
"id": "9c15d2e26945a665131af5d7b6d30a06ba338aaa"
}
], ],
"tree": "fb5cc9d45da3014b17a876ad539976a0fb9b352a",
"message": "Underscore.js 1.5.2", "message": "Underscore.js 1.5.2",
"author": { "author_name": "Jeremy Ashkenas",
"name": "Jeremy Ashkenas", "author_email": "jashkenas@example.com",
"email": "jashkenas@example.com"
},
"committer": {
"name": "Jeremy Ashkenas",
"email": "jashkenas@example.com"
},
"authored_date": "2013-09-07T12:58:21+00:00", "authored_date": "2013-09-07T12:58:21+00:00",
"committer_name": "Jeremy Ashkenas",
"committer_email": "jashkenas@example.com",
"committed_date": "2013-09-07T12:58:21+00:00" "committed_date": "2013-09-07T12:58:21+00:00"
}, },
"protected": false "protected": false,
"developers_can_push": false,
"developers_can_merge": false
} }
] ]
``` ```
### List single branch ### Single branch
Lists a specific branch of a project. A specific branch of a project.
``` ```
GET /projects/:id/repository/branches/:branch GET /projects/:id/repository/branches/:branch
...@@ -1075,6 +1067,8 @@ Parameters: ...@@ -1075,6 +1067,8 @@ Parameters:
- `id` (required) - The ID or NAMESPACE/PROJECT_NAME of a project - `id` (required) - The ID or NAMESPACE/PROJECT_NAME of a project
- `branch` (required) - The name of the branch. - `branch` (required) - The name of the branch.
- `developers_can_push` - Flag if developers can push to the branch.
- `developers_can_merge` - Flag if developers can merge to the branch.
### Protect single branch ### Protect single branch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment