@@ -55,6 +55,14 @@ type MigrationOptions struct {
55
55
// ExcludeAttachments indicates whether attachments should be excluded from
56
56
// the migration (to reduce migration archive file size).
57
57
ExcludeAttachments bool
58
+
59
+ // ExcludeReleases indicates whether releases should be excluded from
60
+ // the migration (to reduce migration archive file size).
61
+ ExcludeReleases bool
62
+
63
+ // Exclude is a slice of related items to exclude from the response in order
64
+ // to improve performance of the request. Supported values are: "repositories"
65
+ Exclude []string
58
66
}
59
67
60
68
// startMigration represents the body of a StartMigration request.
@@ -69,6 +77,14 @@ type startMigration struct {
69
77
// ExcludeAttachments indicates whether attachments should be excluded from
70
78
// the migration (to reduce migration archive file size).
71
79
ExcludeAttachments * bool `json:"exclude_attachments,omitempty"`
80
+
81
+ // ExcludeReleases indicates whether releases should be excluded from
82
+ // the migration (to reduce migration archive file size).
83
+ ExcludeReleases * bool `json:"exclude_releases,omitempty"`
84
+
85
+ // Exclude is a slice of related items to exclude from the response in order
86
+ // to improve performance of the request. Supported values are: "repositories"
87
+ Exclude []string `json:"exclude,omitempty"`
72
88
}
73
89
74
90
// StartMigration starts the generation of a migration archive.
@@ -84,6 +100,8 @@ func (s *MigrationService) StartMigration(ctx context.Context, org string, repos
84
100
if opts != nil {
85
101
body .LockRepositories = Ptr (opts .LockRepositories )
86
102
body .ExcludeAttachments = Ptr (opts .ExcludeAttachments )
103
+ body .ExcludeReleases = Ptr (opts .ExcludeReleases )
104
+ body .Exclude = append (body .Exclude , opts .Exclude ... )
87
105
}
88
106
89
107
req , err := s .client .NewRequest ("POST" , u , body )
0 commit comments