summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/merge_request_poll_widget.json
blob: 2052892dfa30918c55c591a373e10464f242a863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  "type": "object",
  "properties" : {
    "id": { "type": "integer" },
    "iid": { "type": "integer" },
    "description": { "type": ["string", "null"] },
    "title": { "type": "string" },
    "auto_merge_strategy": { "type": ["string", "null"] },
    "available_auto_merge_strategies": { "type": "array" },
    "source_branch_protected": { "type": "boolean" },
    "allow_collaboration": { "type": "boolean"},
    "should_be_rebased": { "type": "boolean" },
    "ff_only_enabled": { "type": ["boolean", false] },
    "merge_user": { "type": ["object", "null"] },
    "pipeline": { "type": ["object", "null"] },
    "merge_pipeline": { "type": ["object", "null"] },
    "default_merge_commit_message": { "type": ["string", "null"] },
    "mergeable": { "type": "boolean" },
    "default_merge_commit_message_with_description": { "type": "string" },
    "mergeable_discussions_state": { "type": "boolean" },
    "project_archived": { "type": "boolean" },
    "only_allow_merge_if_pipeline_succeeds": { "type": "boolean" },
    "has_ci": { "type": "boolean" },
    "ci_status": { "type": ["string", "null"] },
    "cancel_auto_merge_path": { "type": ["string", "null"] },
    "test_reports_path": { "type": ["string", "null"] },
    "can_receive_suggestion": { "type": "boolean" },
    "create_issue_to_resolve_discussions_path": { "type": ["string", "null"] },
    "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"] },
        "can_cherry_pick_on_current_merge_request": { "type": ["boolean", "null"] },
        "can_create_note": { "type": "boolean" },
        "can_create_issue": { "type": "boolean" },
        "can_update": { "type": "boolean" }
      },
      "additionalProperties": false
    },
    "can_push_to_source_branch": { "type": "boolean" },
    "new_blob_path": { "type": ["string", "null"] },
    "rebase_path": { "type": ["string", "null"] },
    "conflict_resolution_path": { "type": ["string", "null"] },
    "remove_wip_path": { "type": ["string", "null"] },
    "merge_path": { "type": ["string", "null"] },
    "cherry_pick_in_fork_path": { "type": ["string", "null"] },
    "revert_in_fork_path": { "type": ["string", "null"] }
  }
}