-
MERGED
{ merge_request: { id: 32, iid: 5, target_branch: "expand_milsestone_label_table_column", source_branch: "rspec_multline_block", created_at: "2017-02-08 19:54:29", updated_at: "2017-02-13 19:51:04", state: "merged", merge_status: "can_be_merged", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": null }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: "823e3047f8bafcdada6e0e157d05c0a9af21e00a", in_progress_merge_commit_sha: null, __source_branch_exists: true, // to show "source branch is not removed" text __can_remove_source_branch: true, // to show "Remove source branch button" __failed_source_branch_remove: true, // to show source branch removal error merge_event: { id: 1021, created_at: "2017-02-13 19:51:03", updated_at: "2017-02-13 19:51:03", author: { id: 1, email: "admin@example.com", name: "Administrator", username: "root", avatar: null, __email_hash: "e64c7d89f26bd1972efa854d13d7dd61" // to Create gravatar } } } }
Edited by username-removed-502136 -
CLOSED
{ merge_request: { id: 32, iid: 5, target_branch: "expand_milsestone_label_table_column", source_branch: "rspec_multline_block", created_at: "2017-02-08 19:54:29", updated_at: "2017-02-13 19:51:04", state: "closed", merge_status: "cannot_be_merged", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": null }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: "823e3047f8bafcdada6e0e157d05c0a9af21e00a", in_progress_merge_commit_sha: null, closed_event: { id: 1021, created_at: "2017-02-13 19:51:03", updated_at: "2017-02-13 19:51:03", author: { id: 1, email: "admin@example.com", name: "Administrator", username: "root", avatar: null, __email_hash: "e64c7d89f26bd1972efa854d13d7dd61" // to Create gravatar } } } }
Edited by username-removed-502136 -
LOCKED
{ merge_request: { id: 32, iid: 5, target_branch: "expand_milsestone_label_table_column", source_branch: "rspec_multline_block", created_at: "2017-02-08 19:54:29", updated_at: "2017-02-13 19:51:04", state: "locked", merge_status: "can_be_merged", locked_at: "2017-02-13 19:51:03", merge_error: null, merge_params: { "force_remove_source_branch": null }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: "823e3047f8bafcdada6e0e157d05c0a9af21e00a", in_progress_merge_commit_sha: null, locked_event: { id: 1021, created_at: "2017-02-13 19:51:03", updated_at: "2017-02-13 19:51:03", author: { id: 1, email: "admin@example.com", name: "Administrator", username: "root", avatar: null, __email_hash: "e64c7d89f26bd1972efa854d13d7dd61" // to Create gravatar } } } }
-
OPEN, WIP
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __work_in_progress: true, // to show WIP widget __can_current_user_update_merge_request: true // to show help text to make MR ready to merge }
Edited by username-removed-502136 -
OPEN, NOTHING TO MERGE
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __has_no_commits: true // to show Nothing to Merge widget }
Edited by username-removed-502136 -
OPEN, MERGE STATUS NOT CHECKED YET
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __unchecked: true // to show Checking ability to merge automatically widget }
Edited by username-removed-502136 -
OPEN, PROJECT ARCHIVED
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __project_archived: true // to show project archived widget }
-
OPEN, HAS CONFLICTS
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, merge_status: "cannot_be_merged", resolved_conflicts: false, // @merge_request.cannot_be_merged? && !resolved_conflicts __user_can_resolve_conflicts: true, // @merge_request.conflicts_can_be_resolved_by?(current_user) __user_can_merge: true, // @merge_request.can_be_merged_via_command_line_by?(current_user) __conflicts_can_be_resolved_ui: true, // @merge_request.conflicts_can_be_resolved_in_ui? __conflict_resolution_path: '' // Conflicts web resolution URL }
Edited by username-removed-502136 -
OPEN, MISSING BRANCH
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __source_branch_exists: true, // @merge_request.source_branch_exists? __target_branch_exists: false // @merge_request.target_branch }
-
OPEN, NOT ALLOWED TO BE MERGED BY THE CURRENT USER
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __can_be_merged_by_current_user: false // !@merge_request.can_be_merged_by?(current_user) }
Edited by username-removed-502136 -
OPEN, UNRESOLVED DISCUSSIONS
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __mergeable_discussions_state: false, // !@merge_request.mergeable_discussions_state? __is_project_issues_enabled: true, // @project.issues_enabled? __can_current_user_create_issue: true // can?(current_user, :create_issue, @project) }
Edited by username-removed-502136 -
@fatihacet first step here https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9253#note_23428434
Edited by username-removed-444 -
OPEN, SET TO MERGE WHEN PIPELINE SUCCEEDS
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __merge_when_build_succeeds: true, // @merge_request.merge_when_build_succeeds? __source_branch_set_to_remove: true, // @merge_request.remove_source_branch? __user_can_remove_source_branch: true, // @merge_request.can_remove_source_branch?(current_user) __user_can_cancel_automatic_merge: true, // @merge_request.can_cancel_merge_when_build_succeeds?(current_user) __merge_user: {}, // @merge_request.merge_user }
Edited by username-removed-502136 -
OPEN, BUILD FAILED
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __mergeable_ci_state: false, // @merge_request.mergeable_ci_state? __pipeline_failed: true , // @pipeline.failed? ( or we can have pipeline.status = 'failed' ) __pipeline_canceled: true, // @pipeline.canceled? ( or we can have pipeline.status = 'canceled' ) }
Edited by username-removed-502136 -
OPEN, READY TO MERGE
{ iid: 1, id: 28, target_branch: "remove-single-quote-rule", source_branch: "remove-comment-toggle", source_project_id: 2, title: "Title of the MR", created_at: "2017-02-08 19:53:58", updated_at: "2017-02-13 21:36:41", state: "opened", merge_status: "can_be_merged", description: "Natus harum quo quos ea debitis accusamus eos quis...", locked_at: null, merge_error: null, merge_params: { "force_remove_source_branch": "0" }, merge_when_build_succeeds: false, merge_user_id: null, merge_commit_sha: null, __resolved_conflicts: true, // resolved_conflicts = params[:resolved_conflicts] __diff_head_sha: '', // @merge_request.diff_head_sha __pipeline: {}, // @pipeline __only_allow_merge_if_build_succeeds: false, // @project.only_allow_merge_if_build_succeeds? __user_can_remove_source_branch: true, // @merge_request.can_remove_source_branch?(current_user) __merge_commit_message: '', // @merge_request.merge_commit_message }
Please register or sign in to comment