Skip to content

Commit 7dd3a04

Browse files
authored
chore(core): adds github as a property for tob level access to repo operator (#485)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [x ] I have added tests for my changes - [ x] I have updated the documentation or added new documentation as needed --------- Co-authored-by: kopekC <[email protected]>
1 parent 9de8877 commit 7dd3a04

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/codegen/sdk/core/codebase.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,20 @@ def __rich_repr__(self) -> rich.repr.Result:
210210
def op(self) -> RepoOperator:
211211
return self._op
212212

213+
@property
214+
def github(self) -> RepoOperator:
215+
"""Access GitHub operations through the repo operator.
216+
217+
This property provides access to GitHub operations like creating PRs,
218+
working with branches, commenting on PRs, etc. The implementation is built
219+
on top of PyGitHub (python-github library) and provides a simplified interface
220+
for common GitHub operations.
221+
222+
Returns:
223+
RepoOperator: The repo operator instance that handles GitHub operations.
224+
"""
225+
return self._op
226+
213227
####################################################################################################################
214228
# SIMPLE META
215229
####################################################################################################################

0 commit comments

Comments
 (0)