diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-30 17:47:11 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-01 08:46:42 -0700 |
commit | 31e4654b1f77ab48e5705f8feb8d628c66d4f962 (patch) | |
tree | 2a42cc633b0b9d04e1cf64b6ca928b8c1189ddff /lib | |
parent | c767e2e0fd72d91ba52f4f4bc23598545004920e (diff) | |
download | gitlab-ce-31e4654b1f77ab48e5705f8feb8d628c66d4f962.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/bitbucket_import/client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |