Skip to content

Commit

Permalink
use correct api to get status
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 11, 2020
1 parent 49a62bb commit 4817811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def get_gh_token(repository=None):

def get_combined_statuses(commit, repository, token=None):
if not token: token = get_gh_token(repository)
return github_api("repos/%s/%s/status" % (repository, commit))
return github_api("/repos/%s/commits/%s/status" % (repository, commit), token, method='GET')

def mark_commit_status(commit, repository, context="default", state="pending", url="", description="Test started", token=None, reset=False):
if not token: token = get_gh_token(repository)
Expand Down

0 comments on commit 4817811

Please sign in to comment.