Skip to content

Commit 5ae92ae

Browse files
fix: propagate git ref to maverick for git-based agents (#8608)
1 parent 81db5f0 commit 5ae92ae

4 files changed

Lines changed: 17 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/resources/shared.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ export interface CodeMountParameters {
202202
*/
203203
token?: string | null;
204204

205+
/**
206+
* Optional git ref (branch, tag, or commit SHA) to checkout. Defaults to the
207+
* repository default branch.
208+
*/
209+
git_ref?: string | null;
210+
205211
/**
206212
* Installation command to install and setup repository.
207213
*/
@@ -381,6 +387,12 @@ export namespace Mount {
381387
*/
382388
token?: string | null;
383389

390+
/**
391+
* Optional git ref (branch, tag, or commit SHA) to checkout. Defaults to the
392+
* repository default branch.
393+
*/
394+
git_ref?: string | null;
395+
384396
/**
385397
* Installation command to install and setup repository.
386398
*/

tests/api-resources/blueprints.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('resource blueprints', () => {
3232
repo_name: 'repo_name',
3333
repo_owner: 'repo_owner',
3434
token: 'token',
35+
git_ref: 'git_ref',
3536
install_command: 'install_command',
3637
},
3738
],
@@ -285,6 +286,7 @@ describe('resource blueprints', () => {
285286
repo_name: 'repo_name',
286287
repo_owner: 'repo_owner',
287288
token: 'token',
289+
git_ref: 'git_ref',
288290
install_command: 'install_command',
289291
},
290292
],

tests/api-resources/devboxes/devboxes.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ describe('resource devboxes', () => {
4040
repo_name: 'repo_name',
4141
repo_owner: 'repo_owner',
4242
token: 'token',
43+
git_ref: 'git_ref',
4344
install_command: 'install_command',
4445
},
4546
],

0 commit comments

Comments
 (0)