@@ -53,7 +53,6 @@ def get_prompt(self) -> str:
5353 "repo" : self .issue ["repo" ],
5454 "issue_number" : self .issue ["number" ],
5555 }
56- # issue = self.mcp_client.call_tool('get_issue', args)
5756 comments = [
5857 comment .get ("body" , "" )
5958 for comment in self .mcp_client .call_tool ("get_issue_comments" , args )
@@ -67,7 +66,7 @@ def get_prompt(self) -> str:
6766 f"COMMENTS: { comments } "
6867 )
6968
70- def comment (self , text : str , mention : bool = False ) -> None :
69+ def comment (self , text : str , * , mention : bool = False ) -> None :
7170 if mention :
7271 owner = self .issue .get ("owner" )
7372 if owner :
@@ -110,7 +109,7 @@ def __init__(
110109 config : dict [str , Any ],
111110 ) -> None :
112111 self .pr = pr
113- repository_url = pr .get ("repository_url" , None )
112+ repository_url = pr .get ("repository_url" )
114113 if repository_url is None :
115114 repository_url = pr .get ("base" , {}).get ("repo" , {}).get ("html_url" , "" )
116115 self .pr ["repo" ] = repository_url .split ("/" )[- 1 ]
@@ -153,7 +152,7 @@ def get_prompt(self) -> str:
153152 }
154153 return f"PULL_REQUEST: { json .dumps (pr_info , ensure_ascii = False )} \n "
155154
156- def comment (self , text : str , mention : bool = False ) -> None :
155+ def comment (self , text : str , * , mention : bool = False ) -> None :
157156 if mention :
158157 owner = self .pr .get ("owner" )
159158 if owner :
@@ -220,17 +219,13 @@ def get_task_list(self) -> list[Task]:
220219 def from_task_key (self , task_key_dict : dict [str , Any ]) -> Task | None :
221220 ttype = task_key_dict .get ("type" )
222221 if ttype == "github_issue" :
223- from .task_key import GitHubIssueTaskKey
224-
225222 task_key = GitHubIssueTaskKey .from_dict (task_key_dict )
226223 issue = self .mcp_client .call_tool (
227224 "get_issue" ,
228225 {"owner" : task_key .owner , "repo" : task_key .repo , "issue_number" : task_key .number },
229226 )
230227 return TaskGitHubIssue (issue , self .mcp_client , self .github_client , self .config )
231228 if ttype == "github_pull_request" :
232- from .task_key import GitHubPullRequestTaskKey
233-
234229 task_key = GitHubPullRequestTaskKey .from_dict (task_key_dict )
235230 pr = self .github_client .get_pull_request (
236231 owner = task_key .owner , repo = task_key .repo , pull_number = task_key .number ,
0 commit comments