def fetch_image_url(https_image_only: false)
      lgtm_post_response = process_request(lgtm_post_url) do |req|
        req['Accept'] = 'application/json'
      end

      lgtm_post = JSON.parse(lgtm_post_response.body)

      url = lgtm_post['actualImageUrl']
      if https_image_only && URI.parse(url).scheme != 'https'
        return fetch_image_url(https_image_only: true)
      end
      url
    rescue ::Lgtm::Errors::UnexpectedError; nil
    end
def fetch_image_url(https_image_only: false)
      lgtm_post_response = process_request(lgtm_post_url) do |req|
        req['Accept'] = 'application/json'
      end

      lgtm_post = JSON.parse(lgtm_post_response.body)

      url = lgtm_post['actualImageUrl']
      if https_image_only && URI.parse(url).scheme != 'https'
        return fetch_image_url(https_image_only: true)
      end
      url
    rescue ::Lgtm::Errors::UnexpectedError; nil
    end
returns "<h1 align="center">LGTM</h1>" when ServiceTemporarilyUnavailable.