MergeRequest Type
A merge request on a DataHub project. Iid is the per-project number
shown in the UI; Id is globally unique across the instance. See the
.
Constructors
| Constructor |
Description
|
Full Usage:
MergeRequest(id, iid, projectId, title, state, sourceBranch, targetBranch, author, webUrl, createdAt, updatedAt, ?description, ?mergeStatus)
Parameters:
int
iid : int
projectId : int
title : string
state : string
sourceBranch : string
targetBranch : string
author : User
webUrl : string
createdAt : string
updatedAt : string
?description : string
?mergeStatus : string
Returns: MergeRequest
|
|
Instance members
| Instance member |
Description
|
|
The user who opened the merge request.
|
Full Usage:
this.CreatedAt
Returns: string
|
The creation timestamp as an ISO 8601 string.
|
Full Usage:
this.Description
Returns: string option
|
The merge request description, or
|
Full Usage:
this.Id
Returns: int
|
The merge request's unique, instance-wide numeric identifier.
|
Full Usage:
this.Iid
Returns: int
|
The per-project merge request number shown in the UI.
|
Full Usage:
this.MergeStatus
Returns: string option
|
The mergeability status (e.g.
|
Full Usage:
this.ProjectId
Returns: int
|
The identifier of the project the merge request belongs to.
|
Full Usage:
this.SourceBranch
Returns: string
|
The branch whose changes are proposed for merging.
|
Full Usage:
this.State
Returns: string
|
The state (e.g.
|
Full Usage:
this.TargetBranch
Returns: string
|
The branch the changes would be merged into.
|
Full Usage:
this.Title
Returns: string
|
The merge request title.
|
Full Usage:
this.UpdatedAt
Returns: string
|
The last-update timestamp as an ISO 8601 string.
|
Full Usage:
this.WebUrl
Returns: string
|
The URL of the merge request's web page.
|
DataHubClient