summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/milestone_formatter.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-10-28 12:44:32 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-10-28 12:44:32 +0000
commit4fd015183cdb280083384c69261c2ab5d475a54b (patch)
tree9cfe91078ab13686c440a78184b0a6164f2c0fea /lib/gitlab/github_import/milestone_formatter.rb
parent04c7c8d8bbc99eaee728c1ca3572b7ae2dc8d2fb (diff)
parentf68d9261b0fa09c03ef8b92d8941d3b6577d9a2a (diff)
downloadgitlab-ce-4fd015183cdb280083384c69261c2ab5d475a54b.tar.gz
Merge branch 'fix/make-github-import-retryable' into 'master'
Modify GitHub importer to be retryable Closes #23533 See merge request !7003
Diffstat (limited to 'lib/gitlab/github_import/milestone_formatter.rb')
-rw-r--r--lib/gitlab/github_import/milestone_formatter.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gitlab/github_import/milestone_formatter.rb b/lib/gitlab/github_import/milestone_formatter.rb
index b2fa524cf5b..401dd962521 100644
--- a/lib/gitlab/github_import/milestone_formatter.rb
+++ b/lib/gitlab/github_import/milestone_formatter.rb
@@ -14,8 +14,12 @@ module Gitlab
}
end
- def klass
- Milestone
+ def project_association
+ :milestones
+ end
+
+ def find_condition
+ { iid: raw_data.number }
end
private