From 31e4654b1f77ab48e5705f8feb8d628c66d4f962 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sun, 30 Aug 2015 17:47:11 -0700 Subject: Sort issues by creation date in Bitbucket importer API reference here: https://bitbucket.org/site/master/issues/3571/api-issues-sorting-bb-3518 Closes https://github.com/gitlabhq/gitlabhq/issues/9519 --- lib/gitlab/bitbucket_import/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab') diff --git a/lib/gitlab/bitbucket_import/client.rb b/lib/gitlab/bitbucket_import/client.rb index aec44b8c87b..bb8bf7e3a98 100644 --- a/lib/gitlab/bitbucket_import/client.rb +++ b/lib/gitlab/bitbucket_import/client.rb @@ -52,7 +52,7 @@ module Gitlab end def issues(project_identifier) - JSON.parse(get("/api/1.0/repositories/#{project_identifier}/issues").body) + JSON.parse(get("/api/1.0/repositories/#{project_identifier}/issues?sort=utc_created_on").body) end def issue_comments(project_identifier, issue_id) -- cgit v1.2.3