lib/backlog_kit/client/issue.rb in backlog_kit-0.13.0 vs lib/backlog_kit/client/issue.rb in backlog_kit-0.14.0

- old
+ new

@@ -1,11 +1,9 @@ module BacklogKit class Client - # Methods for the Issue API module Issue - # Get list of issues # # @param params [Hash] Request parameters # @return [BacklogKit::Response] List of issues def get_issues(params = {}) @@ -32,11 +30,11 @@ # # @param summary [String] Summary of the issue # @param params [Hash] Request parameters # @return [BacklogKit::Response] The issue information def create_issue(summary, params = {}) - params.merge!(summary: summary) + params[:summary] = summary post('issues', params) end # Update an issue # @@ -86,10 +84,10 @@ # @param issue_id_or_key [Integer, String] Issue id or Issue key # @param content [String] Content of the comment # @param params [Hash] Request parameters # @return [BacklogKit::Response] The comment information def add_comment(issue_id_or_key, content, params = {}) - params.merge!(content: content) + params[:content] = content post("issues/#{issue_id_or_key}/comments", params) end # Update a comment in issue #