• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

expertiza / expertiza / #19766

08 Apr 2026 06:09AM UTC coverage: 12.141% (-19.6%) from 31.694%
#19766

push

web-flow
Merge pull request #2976 from expertiza/production_deployment

Production deployment

1959 of 16136 relevant lines covered (12.14%)

0.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/models/github_pull_request_fetcher.rb
1
class GithubPullRequestFetcher
×
2
  require 'http_request'
×
3

4
  class << self
×
5
    def supports_url?(url)
×
6
      lower_case_url = url.downcase
×
7
      (HttpRequest.valid_url?(url) &&
×
8
       (lower_case_url.include? 'github') &&
×
9
       !%r{/pull/[0-9]+$}.match(lower_case_url).nil?)
×
10
    end
×
11
  end
×
12

13
  def initialize(params)
×
14
    @url = params['url']
×
15
  end
×
16

17
  def fetch_content
×
18
    url = @url + '.diff'
×
19
    res = HttpRequest.get(url)
×
20

21
    if res.is_a? Net::HTTPSuccess
×
22
      res.body
×
23
    else
×
24
      ''
×
25
    end
×
26
  end
×
27
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc