Fix code block not rendering
This commit is contained in:
parent
7ec8871b57
commit
a5cec9e861
1 changed files with 14 additions and 13 deletions
|
@ -130,6 +130,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --header "Cont
|
||||||
```
|
```
|
||||||
|
|
||||||
Example response:
|
Example response:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "ed899a2f4b50b4370feeea94676502b42383c746",
|
"id": "ed899a2f4b50b4370feeea94676502b42383c746",
|
||||||
|
@ -162,21 +163,21 @@ curl --request POST \
|
||||||
--form "branch=master" \
|
--form "branch=master" \
|
||||||
--form "commit_message=some commit message" \
|
--form "commit_message=some commit message" \
|
||||||
--form "start_branch=master" \
|
--form "start_branch=master" \
|
||||||
--form "actions[][action]=create" \
|
--form "actions[][action]=create" \
|
||||||
--form "actions[][file_path]=foo/bar" \
|
--form "actions[][file_path]=foo/bar" \
|
||||||
--form "actions[][content]=</path/to/local.file" \
|
--form "actions[][content]=</path/to/local.file" \
|
||||||
--form "actions[][action]=delete" \
|
--form "actions[][action]=delete" \
|
||||||
--form "actions[][file_path]=foo/bar2" \
|
--form "actions[][file_path]=foo/bar2" \
|
||||||
--form "actions[][action]=move" \
|
--form "actions[][action]=move" \
|
||||||
--form "actions[][file_path]=foo/bar3" \
|
--form "actions[][file_path]=foo/bar3" \
|
||||||
--form "actions[][previous_path]=foo/bar4" \
|
--form "actions[][previous_path]=foo/bar4" \
|
||||||
--form "actions[][content]=</path/to/local1.file" \
|
--form "actions[][content]=</path/to/local1.file" \
|
||||||
--form "actions[][action]=update" \
|
--form "actions[][action]=update" \
|
||||||
--form "actions[][file_path]=foo/bar5" \
|
--form "actions[][file_path]=foo/bar5" \
|
||||||
--form "actions[][content]=</path/to/local2.file" \
|
--form "actions[][content]=</path/to/local2.file" \
|
||||||
--form "actions[][action]=chmod" \
|
--form "actions[][action]=chmod" \
|
||||||
--form "actions[][file_path]=foo/bar5" \
|
--form "actions[][file_path]=foo/bar5" \
|
||||||
--form "actions[][execute_filemode]=true" \
|
--form "actions[][execute_filemode]=true" \
|
||||||
--header "PRIVATE-TOKEN: <your_access_token>" \
|
--header "PRIVATE-TOKEN: <your_access_token>" \
|
||||||
"https://gitlab.example.com/api/v4/projects/1/repository/commits"
|
"https://gitlab.example.com/api/v4/projects/1/repository/commits"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue