mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
feat: create_pull_url
This commit is contained in:
parent
d17fc10478
commit
8eb291f918
3 changed files with 78 additions and 15 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue