Struct gitlab::webhooks::MergeRequestHookAttrs [] [src]

pub struct MergeRequestHookAttrs {
    pub source: Option<ProjectHookAttrs>,
    pub target: ProjectHookAttrs,
    pub last_commit: Option<CommitHookAttrs>,
    pub work_in_progress: bool,
    pub in_progress_merge_commit_sha: Option<ObjectId>,
    pub id: MergeRequestId,
    pub target_branch: String,
    pub target_project_id: ProjectId,
    pub source_branch: String,
    pub source_project_id: ProjectId,
    pub author_id: UserId,
    pub assignee_id: Option<UserId>,
    pub title: String,
    pub created_at: HookDate,
    pub updated_at: HookDate,
    pub deleted_at: Option<HookDate>,
    pub locked_at: Option<HookDate>,
    pub updated_by_id: Option<UserId>,
    pub merge_commit_sha: Option<ObjectId>,
    pub merge_error: Option<Value>,
    pub merge_params: MergeRequestParams,
    pub merge_user_id: Option<UserId>,
    pub merge_when_pipeline_succeeds: bool,
    pub position: u64,
    pub milestone_id: Option<MilestoneId>,
    pub oldrev: Option<ObjectId>,
    pub state: MergeRequestState,
    pub merge_status: MergeStatus,
    pub iid: u64,
    pub description: Option<String>,
    pub url: Option<String>,
    pub action: Option<MergeRequestAction>,
    pub time_estimate: u64,
    // some fields omitted
}

Merge request information exposed in hooks.

Fields

The source project of the merge request.

If this is None, the source repository has been deleted.

The target project of the merge request.

Whether the merge request is a work-in-progress or not.

The object ID of the merge commit which is currently being handled.

The ID of the merge request.

The target branch of the merge request.

The ID of the target project.

The source branch of the merge request.

The ID of the source project.

The ID of the author of the merge request.

The ID of the assignee of the merge request.

The title of the merge request.

When the merge request was created.

When the merge request was last updated.

When the merge request was deleted.

When the merge request was locked.

The ID of the user which last updated the merge request.

The object ID of the commit which merged the merge request.

The parameters for merging the merge request.

The user which merged the merge request.

Whether the merge request will be merged once all builds succeed or not.

The milestone of the merge request.

The state of the merge request.

The merge status of the merge request.

The user-visible ID of the merge request.

The description of the merge request.

The URL of the merge request.

The type of action which caused the hook.

Trait Implementations

impl Debug for MergeRequestHookAttrs
[src]

Formats the value using the given formatter.

impl Clone for MergeRequestHookAttrs
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more