Skip to content

Commit f9c394a

Browse files
feat(types): add Report and related schema types to automations
1 parent ba89f3c commit f9c394a

File tree

3 files changed

+3
-50
lines changed

3 files changed

+3
-50
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-dabc0ff98cd7b9d91850b3c0dbada4e487e698333cd0b7257959e4819d9a29d6.yml
3-
openapi_spec_hash: b974bdc6025a26cfa62857bf74ec379b
4-
config_hash: 13514c5eb422e4eb01767e718798de1e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3dcdbd68ce4b336149d28d17ab08f211538ed6630112ae4883af2f6680643159.yml
3+
openapi_spec_hash: 7e4333995b65cf32663166801e2444bb
4+
config_hash: 8d7b241284195a8c51f5d670fbbe0ab4

src/resources/automations.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,8 +2144,6 @@ export interface WorkflowStep {
21442144
*/
21452145
pullRequest?: WorkflowStep.PullRequest;
21462146

2147-
report?: WorkflowStep.Report;
2148-
21492147
/**
21502148
* WorkflowTaskStep represents a task step that executes a command.
21512149
*/
@@ -2201,21 +2199,6 @@ export namespace WorkflowStep {
22012199
title?: string;
22022200
}
22032201

2204-
export interface Report {
2205-
/**
2206-
* Report must have at least one output:
2207-
*
2208-
* ```
2209-
* size(this) >= 1
2210-
* ```
2211-
*/
2212-
outputs?: Array<Report.Output>;
2213-
}
2214-
2215-
export namespace Report {
2216-
export interface Output {}
2217-
}
2218-
22192202
/**
22202203
* WorkflowTaskStep represents a task step that executes a command.
22212204
*/

tests/api-resources/automations.test.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,6 @@ describe('resource automations', () => {
3838
draft: true,
3939
title: 'title',
4040
},
41-
report: {
42-
outputs: [
43-
{
44-
acceptanceCriteria: 'acceptanceCriteria',
45-
boolean: {},
46-
command: 'command',
47-
float: { max: 0, min: 0 },
48-
integer: { max: 0, min: 0 },
49-
key: 'key',
50-
prompt: 'prompt',
51-
string: { pattern: 'pattern' },
52-
title: 'title',
53-
},
54-
],
55-
},
5641
task: { command: 'command' },
5742
},
5843
],
@@ -75,21 +60,6 @@ describe('resource automations', () => {
7560
draft: true,
7661
title: 'title',
7762
},
78-
report: {
79-
outputs: [
80-
{
81-
acceptanceCriteria: 'acceptanceCriteria',
82-
boolean: {},
83-
command: 'command',
84-
float: { max: 0, min: 0 },
85-
integer: { max: 0, min: 0 },
86-
key: 'key',
87-
prompt: 'prompt',
88-
string: { pattern: 'pattern' },
89-
title: 'title',
90-
},
91-
],
92-
},
9363
task: { command: 'command' },
9464
},
9565
],

0 commit comments

Comments
 (0)