Commit c1b1a297 authored by Alishan Ladhani's avatar Alishan Ladhani Committed by Kati Paizee

docs: Add approval comment to example responses for Deployments API

parent 484fe4b8
...@@ -282,7 +282,8 @@ Deployments created by users on GitLab Premium or higher include the `approvals` ...@@ -282,7 +282,8 @@ Deployments created by users on GitLab Premium or higher include the `approvals`
"web_url": "http://localhost:3000/project_6_bot" "web_url": "http://localhost:3000/project_6_bot"
}, },
"status": "approved", "status": "approved",
"created_at": "2022-02-24T20:22:30.097Z" "created_at": "2022-02-24T20:22:30.097Z",
"comment": "Looks good to me"
} }
], ],
... ...
...@@ -342,20 +343,7 @@ Deployments created by users on GitLab Premium or higher include the `approvals` ...@@ -342,20 +343,7 @@ Deployments created by users on GitLab Premium or higher include the `approvals`
{ {
"status": "created", "status": "created",
"pending_approval_count": 0, "pending_approval_count": 0,
"approvals": [ "approvals": [],
{
"user": {
"id": 49,
"username": "project_6_bot",
"name": "****",
"state": "active",
"avatar_url": "https://www.gravatar.com/avatar/e83ac685f68ea07553ad3054c738c709?s=80&d=identicon",
"web_url": "http://localhost:3000/project_6_bot"
},
"status": "approved",
"created_at": "2022-02-24T20:22:30.097Z"
}
],
... ...
} }
``` ```
...@@ -420,7 +408,8 @@ Deployments created by users on GitLab Premium or higher include the `approvals` ...@@ -420,7 +408,8 @@ Deployments created by users on GitLab Premium or higher include the `approvals`
"web_url": "http://localhost:3000/project_6_bot" "web_url": "http://localhost:3000/project_6_bot"
}, },
"status": "approved", "status": "approved",
"created_at": "2022-02-24T20:22:30.097Z" "created_at": "2022-02-24T20:22:30.097Z",
"comment": "Looks good to me"
} }
], ],
... ...
......
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