Skip to content

Commit 77d5481

Browse files
authored
Merge pull request #24 from automa/pavan/jj/knqsmnmy
Update name for cost metadata
2 parents df22b34 + 5fe052e commit 77d5481

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: pnpm lint
6969
- name: Lint fix check
7070
run: |
71-
pnpm lint --fix
71+
pnpm lint-fix
7272
git diff --exit-code
7373
- name: Formatting check
7474
run: pnpm format-check

packages/bot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Parameters:
156156
- `title` (string): Title of the pull request for the proposal.
157157
- `body` (string): Description of the pull request for the proposal.
158158
- `metadata` (object, optional)
159-
- `cost` (number): Cost incurred for implementing the task.
159+
- `cost_in_cents` (number): Cost (in USD cents) incurred for implementing the task.
160160

161161
### `code.cleanup`
162162

packages/bot/src/resources/code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ export interface CodeProposeParams extends CodeDownloadParams {
186186
body?: string;
187187
};
188188
metadata?: Record<string, unknown> & {
189-
cost?: number;
189+
cost_in_cents?: number;
190190
};
191191
}

packages/bot/test/resources/code.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ suite('code', () => {
461461
response = await automa.code.propose({
462462
task: { id: 28, token: 'abcdef' },
463463
metadata: {
464-
cost: 0.1,
464+
cost_in_cents: 10,
465465
random: 'yes',
466466
},
467467
});
@@ -485,7 +485,7 @@ suite('code', () => {
485485
},
486486
task: { id: 28, token: 'abcdef' },
487487
metadata: {
488-
cost: 0.1,
488+
cost_in_cents: 10,
489489
random: 'yes',
490490
},
491491
},

0 commit comments

Comments
 (0)