feat: create_pull_url

This commit is contained in:
莘权 马 2024-05-11 10:44:52 +08:00
parent d17fc10478
commit 8eb291f918
3 changed files with 78 additions and 15 deletions

View file

@ -175,9 +175,12 @@ async def git_create_pull(
>>> body=body,
>>> access_token=access_token,
>>> )
>>> print(pr)
>>> if isinstance(pr, PullRequest):
>>> print(pr)
PullRequest("feat: modify http lib")
>>> elif isinstance(pr, str)
>>> print(f"Visit this url to create a new pull request: {pr}")
Visit this url to create a new pull request: https://github.com/geekan/MetaGPT/compare/master...iorisa:MetaGPT:dev
Returns:
PullRequest: The created pull request.