Skip to content

Commit 2d74b1b

Browse files
feat(api): add incident trigger support to workflow triggers and executions
1 parent bdb1b28 commit 2d74b1b

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

.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/gitpod-493f18eda7390617e5fd5216d7285f5e608fc0ca9aab5bb2c96d5f0b20c4546d.yml
3-
openapi_spec_hash: a2032a891fbc06a3d7395b3e44b285f2
4-
config_hash: 3db4a1c922cee0f16b8dad0da31c341f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod/gitpod-3b6c63dbf36b52a89f73a4f66b8ab0b624608c8bda8cfa5b1baa60e59950b7ff.yml
3+
openapi_spec_hash: bc7fbb5f2e95ac70868022387557008f
4+
config_hash: 173a6e0a8069a38a997548c7f5f8a5e3

automation.go

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,9 +2711,11 @@ type WorkflowTrigger struct {
27112711
//
27122712
// Context Usage by Trigger Type:
27132713
//
2714-
// - Manual: Can use any context type
2715-
// - Time: Typically uses Projects or Repositories context
2716-
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2714+
// - Manual: Can use any context type
2715+
// - Time: Typically uses Projects or Repositories context
2716+
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2717+
// - Incident: Typically uses Projects or Repositories context (no inherent repo
2718+
// context)
27172719
Context WorkflowTriggerContext `json:"context" api:"required"`
27182720
// Manual trigger - executed when StartWorkflow RPC is called. No additional
27192721
// configuration needed.
@@ -2855,9 +2857,11 @@ type WorkflowTriggerParam struct {
28552857
//
28562858
// Context Usage by Trigger Type:
28572859
//
2858-
// - Manual: Can use any context type
2859-
// - Time: Typically uses Projects or Repositories context
2860-
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2860+
// - Manual: Can use any context type
2861+
// - Time: Typically uses Projects or Repositories context
2862+
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2863+
// - Incident: Typically uses Projects or Repositories context (no inherent repo
2864+
// context)
28612865
Context param.Field[WorkflowTriggerContextParam] `json:"context" api:"required"`
28622866
// Manual trigger - executed when StartWorkflow RPC is called. No additional
28632867
// configuration needed.
@@ -2918,9 +2922,11 @@ func (r WorkflowTriggerTimeParam) MarshalJSON() (data []byte, err error) {
29182922
//
29192923
// Context Usage by Trigger Type:
29202924
//
2921-
// - Manual: Can use any context type
2922-
// - Time: Typically uses Projects or Repositories context
2923-
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2925+
// - Manual: Can use any context type
2926+
// - Time: Typically uses Projects or Repositories context
2927+
// - PullRequest: Can use any context, FromTrigger uses PR repository context
2928+
// - Incident: Typically uses Projects or Repositories context (no inherent repo
2929+
// context)
29242930
type WorkflowTriggerContext struct {
29252931
// Execute workflow in agent-managed environments. Agent receives the specified
29262932
// prompt and manages execution context.
@@ -3102,9 +3108,11 @@ func (r workflowTriggerContextRepositoriesRepositoryURLsJSON) RawJSON() string {
31023108
//
31033109
// Context Usage by Trigger Type:
31043110
//
3105-
// - Manual: Can use any context type
3106-
// - Time: Typically uses Projects or Repositories context
3107-
// - PullRequest: Can use any context, FromTrigger uses PR repository context
3111+
// - Manual: Can use any context type
3112+
// - Time: Typically uses Projects or Repositories context
3113+
// - PullRequest: Can use any context, FromTrigger uses PR repository context
3114+
// - Incident: Typically uses Projects or Repositories context (no inherent repo
3115+
// context)
31083116
type WorkflowTriggerContextParam struct {
31093117
// Execute workflow in agent-managed environments. Agent receives the specified
31103118
// prompt and manages execution context.

0 commit comments

Comments
 (0)