diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-09 12:54:52 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-09 12:54:52 +0000 |
commit | 500337c4b23700a30876c6d2f8e7c612f8114432 (patch) | |
tree | fb7e2efa49e250792b5927d169096072304585ae /lib | |
parent | 2af9326c3433c7aebbcc3473859bfbccc47b5e17 (diff) | |
parent | 591bf92ce7ee4c8fab9f7d9491be8b9872cf8dc8 (diff) | |
download | gitlab-ce-500337c4b23700a30876c6d2f8e7c612f8114432.tar.gz |
Merge branch 'iurisilvio/gitlab-ce-bitbucket_closed' into 'master'
Fix bug where Bitbucket 'closed' issues were imported as 'opened'
_Originally opened at !2930 by @iurisilvio._
- - -
Bitbucket has an undocumented status `closed`.
https://confluence.atlassian.com/bitbucket/issues-resource-296095191.html
Related to https://gitlab.com/gitlab-com/support-forum/issues/559
See merge request !2973
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 |