BigW Consortium Gitlab

import_export.yml 1.29 KB
Newer Older
1 2 3
# Model relationships to be included in the project import/export
project_tree:
  - issues:
4
    - :events
5
    - notes:
6 7 8 9 10 11
      - :author
      - :events
    - label_links:
      - :label
    - milestone:
      - :events
12 13 14
  - snippets:
    - notes:
        :author
15
  - :releases
16
  - project_members:
17
    - :user
18
  - merge_requests:
19
    - notes:
20 21
      - :author
      - :events
22
    - :merge_request_diff
23
    - :events
24 25 26 27
    - label_links:
      - :label
    - milestone:
      - :events
28
  - pipelines:
29
    - notes:
30 31
      - :author
      - :events
32
    - :statuses
James Lopez committed
33 34 35 36 37 38
  - :variables
  - :triggers
  - :deploy_keys
  - :services
  - :hooks
  - :protected_branches
39 40 41
  - :labels
  - milestones:
    - :events
42

43 44 45
# Only include the following attributes for the models specified.
included_attributes:
  project:
46 47 48 49 50 51 52
    - :description
    - :issues_enabled
    - :merge_requests_enabled
    - :wiki_enabled
    - :snippets_enabled
    - :visibility_level
    - :archived
53
  user:
54 55
    - :id
    - :email
James Lopez committed
56
    - :username
57 58
  author:
    - :name
James Lopez committed
59

60 61 62
# Do not include the following attributes for the models specified.
excluded_attributes:
  snippets:
63
    - :expired_at
64 65
  merge_request_diff:
    - :st_diffs
66 67 68 69
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
70 71 72

methods:
  statuses:
73 74 75
    - :type
  merge_request_diff:
    - :utf8_st_diffs