Skip to content

Commit

Permalink
Merge pull request #3017 from zendesk/gurney/removeStatusRefEscape
Browse files Browse the repository at this point in the history
Remove CGI escape from ref in GitHub check API call
  • Loading branch information
ragurney authored Oct 23, 2018
2 parents db768fa + 691d9f4 commit cd65739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/commit_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def github_state
# transition to new API. See https://developer.github.com/v3/checks/runs/ and
# https://developer.github.com/v3/checks/suites/ for details
def github_check
base_url = "repos/#{@project.repository_path}/commits/#{CGI.escape(@reference)}"
base_url = "repos/#{@project.repository_path}/commits/#{@reference}"
preview_header = {Accept: 'application/vnd.github.antiope-preview+json'}

check_suites = GITHUB.get("#{base_url}/check-suites", headers: preview_header)[:check_suites]
Expand Down

0 comments on commit cd65739

Please sign in to comment.