diff options
Diffstat (limited to 'qa/qa/resource/issue.rb')
-rw-r--r-- | qa/qa/resource/issue.rb | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/qa/qa/resource/issue.rb b/qa/qa/resource/issue.rb index 1e38de97c1e..2e18e1d0323 100644 --- a/qa/qa/resource/issue.rb +++ b/qa/qa/resource/issue.rb @@ -2,7 +2,7 @@ module QA module Resource - class Issue < Base + class Issue < Issuable attr_writer :milestone, :template, :weight attribute :project do @@ -53,10 +53,6 @@ module QA "/projects/#{project.id}/issues/#{iid}" end - def api_comments_path - "#{api_get_path}/notes" - end - def api_post_body { assignee_ids: assignee_ids, @@ -83,27 +79,6 @@ module QA QA::Runtime::Logger.debug("Successfully updated issue assignees to #{assignee_ids}") end - # Get issue comments - # - # @return [Array] - def comments(auto_paginate: false, attempts: 0) - return parse_body(api_get_from(api_comments_path)) unless auto_paginate - - auto_paginated_response( - Runtime::API::Request.new(api_client, api_comments_path, per_page: '100').url, - attempts: attempts - ) - end - - # Create a new comment - # - # @param [String] body - # @param [Boolean] confidential - # @return [Hash] - def add_comment(body:, confidential: false) - api_post_to(api_comments_path, body: body, confidential: confidential) - end - protected # Return subset of fields for comparing issues |