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

expertiza / expertiza / #18841

23 Jan 2025 10:48PM UTC coverage: 12.397% (-19.9%) from 32.327%
#18841

push

web-flow
fixed artifact errors in main.yml (#2910)

* updating ubuntu version to latest

* updated artifact version

* downgraded ubuntu version

* fixed upload artifacts error

1951 of 15738 relevant lines covered (12.4%)

0.25 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