merge_request_widget.json 5.2 KB
Newer Older
F
Fatih Acet 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{
  "type": "object",
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "author_id": { "type": "integer" },
    "description": { "type": ["string", "null"] },
    "lock_version": { "type": ["string", "null"] },
    "milestone_id": { "type": ["string", "null"] },
    "position": { "type": "integer" },
    "state": { "type": "string" },
    "title": { "type": "string" },
    "updated_by_id": { "type": ["string", "null"] },
    "created_at": { "type": "string" },
    "updated_at": { "type": "string" },
    "time_estimate": { "type": "integer" },
    "total_time_spent": { "type": "integer" },
    "human_time_estimate": { "type": ["integer", "null"] },
    "human_total_time_spent": { "type": ["integer", "null"] },
20 21
    "milestone": { "type": ["object", "null"] },
    "labels": { "type": ["array", "null"] },
F
Fatih Acet 已提交
22 23 24
    "in_progress_merge_commit_sha": { "type": ["string", "null"] },
    "merge_error": { "type": ["string", "null"] },
    "merge_commit_sha": { "type": ["string", "null"] },
25
    "short_merge_commit_sha": { "type": ["string", "null"] },
F
Fatih Acet 已提交
26 27 28 29 30 31 32 33
    "merge_params": { "type": ["object", "null"] },
    "merge_status": { "type": "string" },
    "merge_user_id": { "type": ["integer", "null"] },
    "merge_when_pipeline_succeeds": { "type": "boolean" },
    "source_branch": { "type": "string" },
    "source_project_id": { "type": "integer" },
    "target_branch": { "type": "string" },
    "target_project_id": { "type": "integer" },
34
    "allow_collaboration": { "type": "boolean"},
35
    "metrics": {
36 37 38 39
      "oneOf": [
        { "type": "null" },
        { "$ref": "merge_request_metrics.json" }
      ]
40
    },
F
Fatih Acet 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53
    "author": { "type": ["object", "null"] },
    "merge_user": { "type": ["object", "null"] },
    "diff_head_sha": { "type": ["string", "null"] },
    "diff_head_commit_short_id": { "type": ["string", "null"] },
    "merge_commit_message": { "type": ["string", "null"] },
    "pipeline": { "type": ["object", "null"] },
    "work_in_progress": { "type": "boolean" },
    "source_branch_exists": { "type": "boolean" },
    "mergeable_discussions_state": { "type": "boolean" },
    "conflicts_can_be_resolved_in_ui": { "type": "boolean" },
    "branch_missing": { "type": "boolean" },
    "has_conflicts": { "type": "boolean" },
    "can_be_merged": { "type": "boolean" },
54
    "mergeable": { "type": "boolean" },
F
Fatih Acet 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    "project_archived": { "type": "boolean" },
    "only_allow_merge_if_pipeline_succeeds": { "type": "boolean" },
    "has_ci": { "type": "boolean" },
    "ci_status": { "type": ["string", "null"] },
    "issues_links": {
      "type": "object",
      "required": ["closing", "mentioned_but_not_closing", "assign_to_closing"],
      "properties" : {
        "closing": { "type": "string" },
        "mentioned_but_not_closing": { "type": "string" },
        "assign_to_closing": { "type": ["string", "null"] }
      },
      "additionalProperties": false
    },
    "source_branch_with_namespace_link": { "type": "string" },
    "current_user": {
      "type": "object",
      "required": [
        "can_remove_source_branch",
        "can_revert_on_current_merge_request",
        "can_cherry_pick_on_current_merge_request"
      ],
      "properties": {
        "can_remove_source_branch": { "type": "boolean" },
        "can_revert_on_current_merge_request": { "type": ["boolean", "null"] },
80 81 82
        "can_cherry_pick_on_current_merge_request": { "type": ["boolean", "null"] },
        "can_create_note": { "type": "boolean" },
        "can_update": { "type": "boolean" }
F
Fatih Acet 已提交
83 84 85
      },
      "additionalProperties": false
    },
86
    "target_branch_commits_path": { "type": "string" },
87
    "target_branch_tree_path": { "type": "string" },
F
Fatih Acet 已提交
88 89
    "source_branch_path": { "type": "string" },
    "conflict_resolution_path": { "type": ["string", "null"] },
90 91 92
    "cancel_merge_when_pipeline_succeeds_path": { "type": ["string", "null"] },
    "create_issue_to_resolve_discussions_path": { "type": ["string", "null"] },
    "merge_path": { "type": ["string", "null"] },
F
Fatih Acet 已提交
93 94 95 96 97
    "cherry_pick_in_fork_path": { "type": ["string", "null"] },
    "revert_in_fork_path": { "type": ["string", "null"] },
    "email_patches_path": { "type": "string" },
    "plain_diff_path": { "type": "string" },
    "status_path": { "type": "string" },
98
    "new_blob_path": { "type": ["string", "null"] },
F
Fatih Acet 已提交
99 100 101 102 103
    "merge_check_path": { "type": "string" },
    "ci_environments_status_path": { "type": "string" },
    "merge_commit_message_with_description": { "type": "string" },
    "diverged_commits_count": { "type": "integer" },
    "commit_change_content_path": { "type": "string" },
104
    "merge_commit_path": { "type": ["string", "null"] },
105
    "remove_wip_path": { "type": ["string", "null"] },
106
    "commits_count": { "type": "integer" },
107
    "remove_source_branch": { "type": ["boolean", "null"] },
108
    "merge_ongoing": { "type": "boolean" },
109
    "ff_only_enabled": { "type": ["boolean", false] },
110
    "should_be_rebased": { "type": "boolean" },
111
    "create_note_path": { "type": ["string", "null"] },
112 113 114
    "rebase_commit_sha": { "type": ["string", "null"] },
    "rebase_in_progress": { "type": "boolean" },
    "can_push_to_source_branch": { "type": "boolean" },
115 116
    "rebase_path": { "type": ["string", "null"] },
    "squash": { "type": "boolean" }
F
Fatih Acet 已提交
117 118 119
  },
  "additionalProperties": false
}