Skip to content

Commit

Permalink
Merge pull request suer#5 from phanan/add_watchers
Browse files Browse the repository at this point in the history
Added watchers data
  • Loading branch information
suer committed Mar 11, 2015
2 parents d07f147 + 77d4ef6 commit 9b08fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/redmine_webhook/issue_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def to_hash
:tracker => RedmineWebhook::TrackerWrapper.new(@issue.tracker).to_hash,
:priority => RedmineWebhook::PriorityWrapper.new(@issue.priority).to_hash,
:author => RedmineWebhook::AuthorWrapper.new(@issue.author).to_hash,
:assignee => RedmineWebhook::AuthorWrapper.new(@issue.assigned_to).to_hash
:assignee => RedmineWebhook::AuthorWrapper.new(@issue.assigned_to).to_hash,
:watchers => @issue.watcher_users.collect{|u| RedmineWebhook::AuthorWrapper.new(u).to_hash}
}
end
end

0 comments on commit 9b08fd7

Please sign in to comment.