feat(python/robomp): added authorizes_impl support to task directive processing

- Included authorizes_impl field when attaching threads to directives.
- Added a test case to ensure the author authorization flag is preserved during directive hydration.
This commit is contained in:
can1357
2026-06-21 18:51:24 +02:00
parent 7962a39f86
commit 5a99705797
2 changed files with 28 additions and 2 deletions
+7 -1
View File
@@ -155,7 +155,13 @@ async def _attach_thread(
if directive is None:
return None
thread = await _fetch_thread(github, repo, number, is_pr=is_pr)
return DirectiveInfo(body=directive.body, author=directive.author, thread=thread, pragmas=directive.pragmas)
return DirectiveInfo(
body=directive.body,
author=directive.author,
thread=thread,
pragmas=directive.pragmas,
authorizes_impl=directive.authorizes_impl,
)
async def _resolve_repo_and_issue(