Skip to content

Commit e07b0fa

Browse files
committed
Add missing head_sha parameter for CheckRun create
1 parent a277d20 commit e07b0fa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/github3/repos/repo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ def create_check_run(
615615
if name and head_sha:
616616
data = {
617617
"name": name,
618+
"head_sha": head_sha,
618619
"details_url": details_url,
619620
"external_id": external_id,
620621
"started_at": started_at,

tests/unit/test_repos_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,8 +1393,8 @@ def test_check_suite(self):
13931393

13941394
def test_create_check_run(self):
13951395
"""Verify the request for creating a check run on a suite."""
1396-
data = {"name": "testcheck"}
1397-
self.instance.create_check_run(head_sha="fake-sha", **data)
1396+
data = {"name": "testcheck", "head_sha": "fake-sha"}
1397+
self.instance.create_check_run(**data)
13981398
self.post_called_with(
13991399
url_for("check-runs"), data=data, headers=self.preview_header
14001400
)

0 commit comments

Comments
 (0)