summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/import_export.yml
blob: eef4d92beee378f12ba81aa62f7820e137f8b70e (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
# Model relationships to be included in the project import/export
project_tree:
  - issues:
    - notes:
        :author
  - :labels
  - :milestones
  - :snippets
  - :releases
  - :events
  - project_members:
    - :user
  - merge_requests:
    - notes:
        :author
    - :merge_request_diff
  - ci_commits:
    - :statuses
  - :variables
  - :triggers
  - :deploy_keys
  - :services
  - :hooks
  - :protected_branches

# Only include the following attributes for the models specified.
included_attributes:
  project:
    - :name
    - :path
    - :description
    - :issues_enabled
    - :merge_requests_enabled
    - :wiki_enabled
    - :snippets_enabled
    - :visibility_level
    - :archived
  user:
    - :id
    - :email
    - :username
  author:
    - :name

# Do not include the following attributes for the models specified.
excluded_attributes:
  snippets:
    - :expired_at

methods:
  statuses:
    - :type