diff options
author | Iuri de Silvio <iurisilvio@gmail.com> | 2016-02-22 23:59:13 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-07 19:23:47 +0100 |
commit | 591bf92ce7ee4c8fab9f7d9491be8b9872cf8dc8 (patch) | |
tree | fe193d26ccaaccb66f9e7ec7df23d36ad5dd3ebf /lib | |
parent | 903aa7c95e82949ca0a7b18e1f6d2f25fe1b04f4 (diff) | |
download | gitlab-ce-591bf92ce7ee4c8fab9f7d9491be8b9872cf8dc8.tar.gz |
Fix bug where Bitbucket `closed` issues were imported as `opened`iurisilvio/gitlab-ce-bitbucket_closed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/bitbucket_import/importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb index 3f483847efa..46e51a4bf6d 100644 --- a/lib/gitlab/bitbucket_import/importer.rb +++ b/lib/gitlab/bitbucket_import/importer.rb @@ -76,7 +76,7 @@ module Gitlab project.issues.create!( description: body, title: issue["title"], - state: %w(resolved invalid duplicate wontfix).include?(issue["status"]) ? 'closed' : 'opened', + state: %w(resolved invalid duplicate wontfix closed).include?(issue["status"]) ? 'closed' : 'opened', author_id: gl_user_id(project, reporter) ) end |