Merge branch 'feature/git_pull' into 'mgx_ops'

feat: create_pull_url

See merge request pub/MetaGPT!97
This commit is contained in:
林义章 2024-05-11 07:28:48 +00:00
commit 476e6256a7
3 changed files with 93 additions and 28 deletions

View file

@ -91,6 +91,30 @@ 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(
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 +148,7 @@ async def test_github(context):
assert pr
@pytest.mark.skip
@pytest.mark.asyncio
@pytest.mark.parametrize(
"content",