Skip to content

Commit e1591e6

Browse files
feat(api): add integration_id, update webhook_id in WorkflowTrigger
1 parent 02571d1 commit e1591e6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 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-c148bac55f33b187604bab867c9b75124734cc8e4e72d4087e5a8e9b7472adff.yml
3-
openapi_spec_hash: b98efd1fad1247c31ca39e482a151040
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-5f25564854b84c1757f66d81caaa50f47db40dc697d4cc91877c2f4e59fa16aa.yml
3+
openapi_spec_hash: 132db01aff2713a9a0a4d9e858ec1bba
44
config_hash: 25c7c72de891ed240ee62c4fb9a99756

src/resources/automations.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,6 +2285,13 @@ export namespace WorkflowTrigger {
22852285
| 'PULL_REQUEST_EVENT_READY_FOR_REVIEW'
22862286
>;
22872287

2288+
/**
2289+
* integration_id is the optional ID of an integration that acts as the source of
2290+
* webhook events. When set, the trigger will be activated when the webhook
2291+
* receives events.
2292+
*/
2293+
integrationId?: string | null;
2294+
22882295
/**
22892296
* webhook_id is the optional ID of a webhook that this trigger is bound to. When
22902297
* set, the trigger will be activated when the webhook receives events. This allows

tests/api-resources/automations.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe('resource automations', () => {
7979
manual: {},
8080
pullRequest: {
8181
events: ['PULL_REQUEST_EVENT_UNSPECIFIED'],
82+
integrationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
8283
webhookId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
8384
},
8485
time: { cronExpression: 'cronExpression' },

0 commit comments

Comments
 (0)