BigW Consortium Gitlab

import_export.yml 2.05 KB
Newer Older
1 2
# Model relationships to be included in the project import/export
project_tree:
3 4
  - labels:
      :priorities
5 6
  - milestones:
    - :events
7
  - issues:
8
    - :events
9
    - :timelogs
10
    - notes:
11 12 13
      - :author
      - :events
    - label_links:
14 15
      - label:
          :priorities
16 17
    - milestone:
      - :events
18
  - snippets:
19
    - :award_emoji
20 21
    - notes:
        :author
22
  - :releases
23
  - project_members:
24
    - :user
25
  - merge_requests:
26
    - notes:
27 28
      - :author
      - :events
29
    - :merge_request_diff
30
    - :events
31
    - :timelogs
32
    - label_links:
33 34
      - label:
          :priorities
35 36
    - milestone:
      - :events
37
  - pipelines:
38
    - notes:
39 40
      - :author
      - :events
41
    - :statuses
42 43
  - :triggers
  - :pipeline_schedules
James Lopez committed
44 45
  - :services
  - :hooks
46 47 48
  - protected_branches:
    - :merge_access_levels
    - :push_access_levels
49
  - protected_tags:
50
    - :create_access_levels
51
  - :project_feature
52

53 54 55
# Only include the following attributes for the models specified.
included_attributes:
  user:
56 57
    - :id
    - :email
James Lopez committed
58
    - :username
59 60
  author:
    - :name
James Lopez committed
61

62 63
# Do not include the following attributes for the models specified.
excluded_attributes:
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
  project:
    - :name
    - :path
    - :namespace_id
    - :creator_id
    - :import_url
    - :import_status
    - :avatar
    - :import_type
    - :import_source
    - :import_error
    - :mirror
    - :runners_token
    - :repository_storage
    - :repository_read_only
    - :lfs_enabled
    - :import_jid
    - :created_at
    - :updated_at
    - :import_jid
    - :import_jid
    - :id
    - :star_count
87
    - :last_activity_at
88 89
    - :last_repository_updated_at
    - :last_repository_check_at
90
  snippets:
91
    - :expired_at
92 93
  merge_request_diff:
    - :st_diffs
94 95 96 97
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
98 99
  award_emoji:
    - :awardable_id
100 101 102
  statuses:
    - :trace
    - :token
103 104

methods:
105
  labels:
James Lopez committed
106 107
    - :type
  label:
108
    - :type
109
  statuses:
110
    - :type
111 112
  services:
    - :type
113
  merge_request_diff:
114
    - :utf8_st_diffs
115 116
  merge_requests:
    - :diff_head_sha
117
  project:
118
    - :description_html