Logo DataHubClient

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

MergeRequest(id, iid, projectId, title, state, sourceBranch, targetBranch, author, webUrl, createdAt, updatedAt, ?description, ?mergeStatus)

Full Usage: MergeRequest(id, iid, projectId, title, state, sourceBranch, targetBranch, author, webUrl, createdAt, updatedAt, ?description, ?mergeStatus)

Parameters:
    id : 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
id : 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

this.Author

Full Usage: this.Author

Returns: User

The user who opened the merge request.

Returns: User

this.CreatedAt

Full Usage: this.CreatedAt

Returns: string

The creation timestamp as an ISO 8601 string.

Returns: string

this.Description

Full Usage: this.Description

Returns: string option

The merge request description, or None if none is set.

Returns: string option

this.Id

Full Usage: this.Id

Returns: int

The merge request's unique, instance-wide numeric identifier.

Returns: int

this.Iid

Full Usage: this.Iid

Returns: int

The per-project merge request number shown in the UI.

Returns: int

this.MergeStatus

Full Usage: this.MergeStatus

Returns: string option

The mergeability status (e.g. can_be_merged), or None if not reported.

Returns: string option

this.ProjectId

Full Usage: this.ProjectId

Returns: int

The identifier of the project the merge request belongs to.

Returns: int

this.SourceBranch

Full Usage: this.SourceBranch

Returns: string

The branch whose changes are proposed for merging.

Returns: string

this.State

Full Usage: this.State

Returns: string

The state (e.g. opened, merged, closed).

Returns: string

this.TargetBranch

Full Usage: this.TargetBranch

Returns: string

The branch the changes would be merged into.

Returns: string

this.Title

Full Usage: this.Title

Returns: string

The merge request title.

Returns: string

this.UpdatedAt

Full Usage: this.UpdatedAt

Returns: string

The last-update timestamp as an ISO 8601 string.

Returns: string

this.WebUrl

Full Usage: this.WebUrl

Returns: string

The URL of the merge request's web page.

Returns: string

Type something to start searching.