Skip to content

Commit

Permalink
Fix wrong api method :(
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst committed Jun 8, 2021
1 parent 2605b15 commit 8fe44ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/android/post_benchmarks_as_pr_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def get_previous_comment_on_pr(pr_number: str,
payload = json.dumps({"per_page": 100})

api_endpoint = f"{GITHUB_IREE_API_PREFIX}/issues/{pr_number}/comments"
response = requests.post(api_endpoint, data=payload, headers=headers)
response = requests.get(api_endpoint, data=payload, headers=headers)
if response.status_code != 200:
raise requests.RequestException(
f"Failed to get PR comments from GitHub; error code: {response.status_code}"
Expand Down

0 comments on commit 8fe44ff

Please sign in to comment.