@@ -173,7 +173,7 @@ async def fix_local(
173173 .with_string_output ("summary" , "list of changes made" )
174174 )
175175
176- prompt_file = dag .current_module ().source ().file ("prompts/ fix.txt" )
176+ prompt_file = dag .current_module ().source ().file ("src/book/prompt. fix.txt" )
177177
178178 work = (
179179 dag .llm ()
@@ -199,7 +199,7 @@ async def fix_ci(
199199 .with_string_output ("summary" , "list of changes made" )
200200 )
201201
202- prompt_file = dag .current_module ().source ().file ("prompts/ fix.txt" )
202+ prompt_file = dag .current_module ().source ().file ("src/book/prompt. fix.txt" )
203203
204204 work = (
205205 dag .llm ()
@@ -226,14 +226,16 @@ async def fix_ci(
226226 .file ("/tmp/a.diff" )
227227 )
228228
229- pr_url = await dag .workspace (source = source , token = token ).open_pr (repository , ref , diff_file )
229+ #pr_url = await dag.workspace(source=source, token=token).open_pr(repository, ref, diff_file)
230+ pr_url = await dag .github_api ().create_pr (repository , ref , diff_file , token )
230231
231232 diff = await diff_file .contents ()
232233
233234 # post comment with changes
234235 comment_body = f"{ summary } \n \n Diff:\n \n ```{ diff } ```"
235236 comment_body += f"\n \n PR with fixes: { pr_url } "
236237
237- comment_url = await dag .workspace (source = source , token = token ).comment (repository , ref , comment_body )
238+ #comment_url = await dag.workspace(source=source, token=token).comment(repository, ref, comment_body)
239+ comment_url = await dag .github_api ().comment (repository , ref , comment_body , token )
238240
239241 return f"Comment posted: { comment_url } "
0 commit comments