Add new create_fork arguments (#2493)

Adds support for new `create_fork` arguments:
 - `name` - To set the name of the fork on creation
 - `default_branch_only` - To only include the default branch

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>
This commit is contained in:
Jonathan Leitschuh
2023-05-23 17:40:02 +02:00
committed by GitHub
parent e8075c41dd
commit b94a83cbf3
9 changed files with 62 additions and 26 deletions
+1
View File
@@ -196,6 +196,7 @@ class ReplayingConnection:
if isinstance(input, str):
trInput = input.replace("\n", "").replace("\r", "")
if input.startswith("{"):
assert expectedInput.startswith("{"), expectedInput
assert json.loads(trInput) == json.loads(expectedInput)
else:
assert trInput == expectedInput