diff options
Diffstat (limited to 'lib/atlassian/jira_connect/serializers/branch_entity.rb')
-rw-r--r-- | lib/atlassian/jira_connect/serializers/branch_entity.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/atlassian/jira_connect/serializers/branch_entity.rb b/lib/atlassian/jira_connect/serializers/branch_entity.rb index c663575b7a8..682b2d77102 100644 --- a/lib/atlassian/jira_connect/serializers/branch_entity.rb +++ b/lib/atlassian/jira_connect/serializers/branch_entity.rb @@ -7,14 +7,13 @@ module Atlassian expose :id do |branch| Digest::SHA256.hexdigest(branch.name) end - expose :issueKeys do |branch| - JiraIssueKeyExtractor.new(branch.name).issue_keys + expose :issueKeys do |branch, options| + JiraIssueKeyExtractors::Branch.new(options[:project], branch.name).issue_keys end expose :name expose :lastCommit, using: JiraConnect::Serializers::CommitEntity do |branch, options| options[:project].commit(branch.dereferenced_target) end - expose :url do |branch, options| project_commits_url(options[:project], branch.name) end |