/inventory/repository/git/checkout
POST
Checkout of a specific branch or tag in a local repository folder.
Parameters in the POST body schema
Name | Type | Description | Example | Default |
---|---|---|---|---|
branch |
required oneOf(branch , tag ), string |
Branch name to checkout. | "branch" : "master" | |
tag |
required oneOf(branch , tag ), string |
Tag name to checkout. | "tag" : "v1.0.0" | |
folder |
required, string | Folder path of the local repository the checkout should be performed in. | "folder" : "/JS7Demo" | |
category |
required, string | Categorize the repository nature. Possible values are LOCAL or ROLLOUT. | "category" : "ROLLOUT" | |
auditLog |
optional, object | Object that contains comment , timeSpent and ticketLink . |
{ "comment": "Operational requirement!", "timeSpent": 2 } |
|
comment |
optional, string | Field in auditLog to comment this action, e.g. the reason. |
||
timeSpent |
optional, integer | Field in auditLog to enter the time spent in minutes. |
||
ticketLink |
optional, string | Field in auditLog to enter a link to a corresponding ticket. |
Request