Commit 41ed064e authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'asalii-master-patch-99240' into 'master'

Update to fit the latest changes of default branch name

See merge request gitlab-org/gitlab!76090
parents 8be67fe0 16b009c3
...@@ -40,14 +40,14 @@ Example response: ...@@ -40,14 +40,14 @@ Example response:
```json ```json
[ [
{ {
"name": "master", "name": "main",
"merged": false, "merged": false,
"protected": true, "protected": true,
"default": true, "default": true,
"developers_can_push": false, "developers_can_push": false,
"developers_can_merge": false, "developers_can_merge": false,
"can_push": true, "can_push": true,
"web_url": "https://gitlab.example.com/my-group/my-project/-/tree/master", "web_url": "https://gitlab.example.com/my-group/my-project/-/tree/main",
"commit": { "commit": {
"author_email": "john@example.com", "author_email": "john@example.com",
"author_name": "John Smith", "author_name": "John Smith",
...@@ -89,7 +89,7 @@ Parameters: ...@@ -89,7 +89,7 @@ Parameters:
Example request: Example request:
```shell ```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches/master" curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches/main"
``` ```
Example response: Example response:
...@@ -103,7 +103,7 @@ Example response: ...@@ -103,7 +103,7 @@ Example response:
"developers_can_push": false, "developers_can_push": false,
"developers_can_merge": false, "developers_can_merge": false,
"can_push": true, "can_push": true,
"web_url": "https://gitlab.example.com/my-group/my-project/-/tree/master", "web_url": "https://gitlab.example.com/my-group/my-project/-/tree/main",
"commit": { "commit": {
"author_email": "john@example.com", "author_email": "john@example.com",
"author_name": "John Smith", "author_name": "John Smith",
...@@ -151,7 +151,7 @@ Parameters: ...@@ -151,7 +151,7 @@ Parameters:
Example request: Example request:
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches?branch=newbranch&ref=master" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches?branch=newbranch&ref=main"
``` ```
Example response: Example response:
......
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