diff --git a/src/codegen/sdk/core/codebase.py b/src/codegen/sdk/core/codebase.py index 7dd7f8d89..2cb1905d0 100644 --- a/src/codegen/sdk/core/codebase.py +++ b/src/codegen/sdk/core/codebase.py @@ -210,6 +210,20 @@ def __rich_repr__(self) -> rich.repr.Result: def op(self) -> RepoOperator: return self._op + @property + def github(self) -> RepoOperator: + """Access GitHub operations through the repo operator. + + This property provides access to GitHub operations like creating PRs, + working with branches, commenting on PRs, etc. The implementation is built + on top of PyGitHub (python-github library) and provides a simplified interface + for common GitHub operations. + + Returns: + RepoOperator: The repo operator instance that handles GitHub operations. + """ + return self._op + #################################################################################################################### # SIMPLE META ####################################################################################################################