Read about our upcoming Code of Conduct on this issue

import_export.yml 3.81 KB
Newer Older
1
2
# Model relationships to be included in the project import/export
project_tree:
3
4
  - labels:
      :priorities
5
  - milestones:
6
7
    - events:
      - :push_event_payload
8
  - issues:
9
10
    - events:
      - :push_event_payload
11
    - :timelogs
12
    - notes:
13
      - :author
14
15
      - events:
        - :push_event_payload
16
    - label_links:
17
18
      - label:
          :priorities
19
    - milestone:
20
21
      - events:
        - :push_event_payload
22
23
24
    - resource_label_events:
      - label:
          :priorities
James Lopez's avatar
James Lopez committed
25
    - :issue_assignees
26
  - snippets:
27
    - :award_emoji
28
29
    - notes:
        :author
30
  - releases:
31
    - :links
32
  - project_members:
33
    - :user
34
  - merge_requests:
35
    - :metrics
36
    - :suggestions
37
    - notes:
James Lopez's avatar
James Lopez committed
38
      - :author
39
40
      - events:
        - :push_event_payload
41
    - merge_request_diff:
42
      - :merge_request_diff_commits
43
      - :merge_request_diff_files
44
45
    - events:
      - :push_event_payload
46
    - :timelogs
47
    - label_links:
48
49
      - label:
          :priorities
50
    - milestone:
51
52
      - events:
        - :push_event_payload
53
54
55
    - resource_label_events:
      - label:
          :priorities
56
  - ci_pipelines:
57
    - notes:
James Lopez's avatar
James Lopez committed
58
      - :author
59
60
      - events:
        - :push_event_payload
61
62
    - stages:
      - :statuses
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
63
  - :auto_devops
64
65
  - :triggers
  - :pipeline_schedules
James Lopez's avatar
James Lopez committed
66
  - :services
67
68
69
  - protected_branches:
    - :merge_access_levels
    - :push_access_levels
70
  - protected_tags:
71
    - :create_access_levels
Felipe Artur's avatar
Felipe Artur committed
72
  - :project_feature
73
  - :custom_attributes
Kamil Trzciński's avatar
Kamil Trzciński committed
74
  - :prometheus_metrics
75
  - :project_badges
76
  - :ci_cd_settings
77
  - :error_tracking_setting
78
  - :metrics_setting
79

80
81
82
# Only include the following attributes for the models specified.
included_attributes:
  user:
83
84
    - :id
    - :email
James Lopez's avatar
James Lopez committed
85
    - :username
86
87
  author:
    - :name
88
89
  ci_cd_settings:
    - :group_runners_enabled
James Lopez's avatar
James Lopez committed
90

91
92
# Do not include the following attributes for the models specified.
excluded_attributes:
93
94
95
96
97
  project:
    - :name
    - :path
    - :namespace_id
    - :creator_id
Nick Thomas's avatar
Nick Thomas committed
98
    - :pool_repository_id
99
100
101
102
103
104
105
    - :import_url
    - :import_status
    - :avatar
    - :import_type
    - :import_source
    - :mirror
    - :runners_token
106
    - :runners_token_encrypted
107
108
109
110
111
112
113
    - :repository_storage
    - :repository_read_only
    - :lfs_enabled
    - :created_at
    - :updated_at
    - :id
    - :star_count
114
    - :last_activity_at
115
116
    - :last_repository_updated_at
    - :last_repository_check_at
117
    - :storage_version
118
    - :remote_mirror_available_overridden
119
    - :description_html
120
    - :repository_languages
121
    - :bfg_object_map
122
    - :detected_repository_languages
123
    - :tag_list
124
125
126
  namespaces:
    - :runners_token
    - :runners_token_encrypted
127
128
129
  project_import_state:
    - :last_error
    - :jid
Kamil Trzciński's avatar
Kamil Trzciński committed
130
131
132
  prometheus_metrics:
    - :common
    - :identifier
133
  snippets:
James Lopez's avatar
James Lopez committed
134
    - :expired_at
James Lopez's avatar
James Lopez committed
135
  merge_request_diff:
136
137
138
    - :external_diff
    - :stored_externally
    - :external_diff_store
139
140
  merge_request_diff_files:
    - :diff
141
142
    - :external_diff_offset
    - :external_diff_size
143
144
145
146
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
147
    - :ref_fetched
148
    - :merge_jid
149
    - :latest_merge_request_diff_id
150
151
  award_emoji:
    - :awardable_id
Kamil Trzciński's avatar
Kamil Trzciński committed
152
153
154
  statuses:
    - :trace
    - :token
Kamil Trzciński's avatar
Kamil Trzciński committed
155
    - :token_encrypted
156
    - :when
157
158
    - :artifacts_file
    - :artifacts_metadata
159
    - :commands
160
161
  push_event_payload:
    - :event_id
162
163
  project_badges:
    - :group_id
164
165
166
167
  resource_label_events:
    - :reference
    - :reference_html
    - :epic_id
168
169
170
  runners:
    - :token
    - :token_encrypted
171
172
  services:
    - :template
173
174
175
  error_tracking_setting:
    - :encrypted_token
    - :encrypted_token_iv
176
    - :enabled
James Lopez's avatar
James Lopez committed
177
178

methods:
179
  labels:
James Lopez's avatar
James Lopez committed
180
181
    - :type
  label:
182
    - :type
James Lopez's avatar
James Lopez committed
183
  statuses:
James Lopez's avatar
James Lopez committed
184
    - :type
185
186
  services:
    - :type
187
188
  merge_request_diff_files:
    - :utf8_diff
189
190
  merge_requests:
    - :diff_head_sha
James Lopez's avatar
James Lopez committed
191
192
    - :source_branch_sha
    - :target_branch_sha
193
194
195
  events:
    - :action
  push_event_payload:
196
    - :action
197
198
  project_badges:
    - :type