Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/representation/issue.rb')
-rw-r--r--lib/bitbucket/representation/issue.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/bitbucket/representation/issue.rb b/lib/bitbucket/representation/issue.rb
index 7a50bdf58d6..e9a2fc7510f 100644
--- a/lib/bitbucket/representation/issue.rb
+++ b/lib/bitbucket/representation/issue.rb
@@ -45,6 +45,19 @@ module Bitbucket
iid
end
+ def to_hash
+ {
+ iid: iid,
+ title: title,
+ description: description,
+ state: state,
+ author: author,
+ milestone: milestone,
+ created_at: created_at,
+ updated_at: updated_at
+ }
+ end
+
private
def closed?