Skip to content

Commit 605eb02

Browse files
authored
Update with latest schema to support Pipeline Promotions with Release ID. (#64)
1 parent ec2b3fc commit 605eb02

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

v6/heroku.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,6 +3502,10 @@ type PipelinePromotionCreateOpts struct {
35023502
App *struct {
35033503
ID *string `json:"id,omitempty" url:"id,omitempty,key"` // unique identifier of app
35043504
} `json:"app,omitempty" url:"app,omitempty,key"` // the app which was promoted from
3505+
Release *struct {
3506+
ID *string `json:"id,omitempty" url:"id,omitempty,key"` // unique identifier of release
3507+
} `json:"release,omitempty" url:"release,omitempty,key"` // the specific release to promote from (optional, defaults to current
3508+
// release)
35053509
} `json:"source" url:"source,key"` // the app being promoted from
35063510
Targets []struct {
35073511
App *struct {

v6/schema.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11283,6 +11283,18 @@
1128311283
"type": [
1128411284
"object"
1128511285
]
11286+
},
11287+
"release": {
11288+
"description": "the specific release to promote from (optional, defaults to current release)",
11289+
"properties": {
11290+
"id": {
11291+
"$ref": "#/definitions/release/definitions/id"
11292+
}
11293+
},
11294+
"strictProperties": true,
11295+
"type": [
11296+
"object"
11297+
]
1128611298
}
1128711299
},
1128811300
"type": [
@@ -12471,7 +12483,8 @@
1247112483
"enum": [
1247212484
"failed",
1247312485
"pending",
12474-
"succeeded"
12486+
"succeeded",
12487+
"expired"
1247512488
],
1247612489
"example": "succeeded",
1247712490
"readOnly": true,

0 commit comments

Comments
 (0)