def list_repo(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      filter! VALID_ISSUE_PARAM_NAMES, params
      # _merge_mime_type(:issue, params)
      assert_valid_values(VALID_ISSUE_PARAM_VALUES, params)

      response = get_request("/1.0/repositories/#{user}/#{repo.downcase}/issues", params)
      return response.issues unless block_given?
      response.issues.each { |el| yield el }
    end
def list_repo(user_name, repo_name, params={ })
      _update_user_repo_params(user_name, repo_name)
      _validate_user_repo_params(user, repo) unless user? && repo?

      normalize! params
      filter! VALID_ISSUE_PARAM_NAMES, params
      # _merge_mime_type(:issue, params)
      assert_valid_values(VALID_ISSUE_PARAM_VALUES, params)

      response = get_request("/1.0/repositories/#{user}/#{repo.downcase}/issues", params)
      return response.issues unless block_given?
      response.issues.each { |el| yield el }
    end
List issues for a repository

 = Inputs
  <tt>:limit</tt> - Optional - Number of issues to retrieve, default 15
  <tt>:start</tt> - Optional - Issue offset, default 0
  <tt>:search</tt> - Optional - A string to search for
  <tt>:sort</tt> - Optional - Sorts the output by any of the metadata fields
  <tt>:title</tt> - Optional - Contains a filter operation to restrict the list of issues by the issue title
  <tt>:content</tt> - Optional - Contains a filter operation to restrict the list of issues by the issue content
  <tt>:version</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the version
  <tt>:milestone</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the milestone
  <tt>:component</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the component
  <tt>:kind</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the issue kind
  <tt>:status</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the issue status
  <tt>:responsible</tt> - Optional - Contains an is or ! ( is not) filter to restrict the list of issues by the user responsible
  <tt>:reported_by</tt> - Optional - Contains a filter operation to restrict the list of issues by the user that reported the issue

 = Examples
  bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name'
  bitbucket.issues.list_repo :filter => 'kind=bug&kind=enhancement'