Skip to content

Commit fc633d6

Browse files
fix: propagate git ref to maverick for git-based agents (#8608)
1 parent 1dd716d commit fc633d6

7 files changed

Lines changed: 32 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 109
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-72e5e6463144100abe3cc23ed837d5ebba4b95d97f9d58406954a3c48f27c310.yml
3-
openapi_spec_hash: fee1880d8e4bb34c1cf97f5eef3b3248
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-a1c7e69cbbf7a7cf63893358470cee52714633e6d31ce6dff2e7255c7445a1aa.yml
3+
openapi_spec_hash: a0e88c05a9b74c2bc9192bd7d94de3c0
44
config_hash: ecb1ff09d29b565ed1452b5e0362e64d

src/runloop_api_client/types/shared/code_mount_parameters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,11 @@ class CodeMountParameters(BaseModel):
2020
token: Optional[str] = None
2121
"""The authentication token necessary to pull repo."""
2222

23+
git_ref: Optional[str] = None
24+
"""Optional git ref (branch, tag, or commit SHA) to checkout.
25+
26+
Defaults to the repository default branch.
27+
"""
28+
2329
install_command: Optional[str] = None
2430
"""Installation command to install and setup repository."""

src/runloop_api_client/types/shared/mount.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class CodeMount(BaseModel):
2727
token: Optional[str] = None
2828
"""The authentication token necessary to pull repo."""
2929

30+
git_ref: Optional[str] = None
31+
"""Optional git ref (branch, tag, or commit SHA) to checkout.
32+
33+
Defaults to the repository default branch.
34+
"""
35+
3036
install_command: Optional[str] = None
3137
"""Installation command to install and setup repository."""
3238

src/runloop_api_client/types/shared_params/code_mount_parameters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ class CodeMountParameters(TypedDict, total=False):
2121
token: Optional[str]
2222
"""The authentication token necessary to pull repo."""
2323

24+
git_ref: Optional[str]
25+
"""Optional git ref (branch, tag, or commit SHA) to checkout.
26+
27+
Defaults to the repository default branch.
28+
"""
29+
2430
install_command: Optional[str]
2531
"""Installation command to install and setup repository."""

src/runloop_api_client/types/shared_params/mount.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class CodeMount(TypedDict, total=False):
2727
token: Optional[str]
2828
"""The authentication token necessary to pull repo."""
2929

30+
git_ref: Optional[str]
31+
"""Optional git ref (branch, tag, or commit SHA) to checkout.
32+
33+
Defaults to the repository default branch.
34+
"""
35+
3036
install_command: Optional[str]
3137
"""Installation command to install and setup repository."""
3238

tests/api_resources/test_blueprints.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
4747
"repo_name": "repo_name",
4848
"repo_owner": "repo_owner",
4949
"token": "token",
50+
"git_ref": "git_ref",
5051
"install_command": "install_command",
5152
}
5253
],
@@ -434,6 +435,7 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
434435
"repo_name": "repo_name",
435436
"repo_owner": "repo_owner",
436437
"token": "token",
438+
"git_ref": "git_ref",
437439
"install_command": "install_command",
438440
}
439441
],
@@ -542,6 +544,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
542544
"repo_name": "repo_name",
543545
"repo_owner": "repo_owner",
544546
"token": "token",
547+
"git_ref": "git_ref",
545548
"install_command": "install_command",
546549
}
547550
],
@@ -929,6 +932,7 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
929932
"repo_name": "repo_name",
930933
"repo_owner": "repo_owner",
931934
"token": "token",
935+
"git_ref": "git_ref",
932936
"install_command": "install_command",
933937
}
934938
],

tests/api_resources/test_devboxes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
6060
"repo_name": "repo_name",
6161
"repo_owner": "repo_owner",
6262
"token": "token",
63+
"git_ref": "git_ref",
6364
"install_command": "install_command",
6465
}
6566
],
@@ -1683,6 +1684,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
16831684
"repo_name": "repo_name",
16841685
"repo_owner": "repo_owner",
16851686
"token": "token",
1687+
"git_ref": "git_ref",
16861688
"install_command": "install_command",
16871689
}
16881690
],

0 commit comments

Comments
 (0)