Skip to content

Commit a0321c6

Browse files
authored
[FIX][URGENT] Fix target_url default in update_status_on_github (#824)
* Fix target_url default in update_status_on_github * Fix pycodestyle Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com> --------- Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com>
1 parent 9f78659 commit a0321c6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

mod_ci/controllers.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -654,14 +654,6 @@ def schedule_test(gh_commit: Commit.Commit) -> None:
654654
655655
:param gh_commit: The GitHub API call for the commit. Can be None
656656
:type gh_commit: Any
657-
:param commit: The commit hash.
658-
:type commit: str
659-
:param test_type: The type of test
660-
:type test_type: TestType
661-
:param branch: Branch name
662-
:type branch: str
663-
:param pr_nr: Pull Request number, if applicable.
664-
:type pr_nr: int
665657
:return: Nothing
666658
:rtype: None
667659
"""
@@ -671,7 +663,8 @@ def schedule_test(gh_commit: Commit.Commit) -> None:
671663
update_status_on_github(gh_commit, Status.PENDING, status_description, f"CI - {platform.value}")
672664

673665

674-
def update_status_on_github(gh_commit: Commit.Commit, state, description, context, target_url=GithubObject._NotSetType):
666+
def update_status_on_github(gh_commit: Commit.Commit, state, description, context,
667+
target_url=GithubObject._NotSetType()):
675668
"""
676669
Update status on GitHub.
677670
@@ -684,7 +677,7 @@ def update_status_on_github(gh_commit: Commit.Commit, state, description, contex
684677
:param context: Context for Github status.
685678
:type context: str
686679
:param target_url: Platform url for test status
687-
:type target_url: _NotSetType | str
680+
:type target_url: _NotSetType() | str
688681
"""
689682
from run import log
690683

0 commit comments

Comments
 (0)