mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05: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
|
|
@ -91,6 +91,39 @@ async def test_new_pr():
|
|||
assert pr
|
||||
|
||||
|
||||
# @pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
async def test_new_pr1():
|
||||
body = """
|
||||
>>> SUMMARY
|
||||
>>> Change HTTP library used to send requests
|
||||
>>>
|
||||
>>> TESTS
|
||||
>>> - [x] Send 'GET' request
|
||||
>>> - [x] Send 'POST' request with/without body
|
||||
"""
|
||||
pr = await GitRepository.create_pull(
|
||||
base_repo_name="iorisa/MetaGPT",
|
||||
base="fixbug/vscode",
|
||||
head_repo_name="send18/MetaGPT",
|
||||
head="dev",
|
||||
title="Test pr",
|
||||
body=body,
|
||||
access_token=await get_env(key="access_token", app_name="github"),
|
||||
)
|
||||
# pr = await GitRepository.create_pull(
|
||||
# head_repo_name="iorisa/MetaGPT",
|
||||
# head="fixbug/vscode",
|
||||
# base_repo_name="send18/MetaGPT",
|
||||
# base="dev",
|
||||
# title="Test pr",
|
||||
# body=body,
|
||||
# access_token=await get_env(key="access_token", app_name="github"),
|
||||
# )
|
||||
print(pr)
|
||||
assert pr
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
async def test_auth():
|
||||
|
|
@ -124,6 +157,7 @@ async def test_github(context):
|
|||
assert pr
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize(
|
||||
"content",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue