@@ -23,7 +23,6 @@ pub mod build_started_0_1_1;
23
23
pub mod build_started_0_2_0;
24
24
pub mod change_abandoned_0_1_2;
25
25
pub mod change_abandoned_0_2_0;
26
- pub mod change_created_0_2_0;
27
26
pub mod change_created_0_1_2;
28
27
pub mod change_created_0_3_0;
29
28
pub mod change_merged_0_1_2;
@@ -177,45 +176,6 @@ pub mod spec_0_3_0 {
177
176
pub use super :: testsuiterun_queued_0_1_0 as testsuiterun_queued;
178
177
pub use super :: testsuiterun_started_0_1_0 as testsuiterun_started;
179
178
}
180
- pub mod spec_0_4_0_draft {
181
- pub use super :: artifact_signed_0_1_0 as artifact_signed;
182
- pub use super :: branch_created_0_1_2 as branch_created;
183
- pub use super :: branch_deleted_0_1_2 as branch_deleted;
184
- pub use super :: build_finished_0_1_1 as build_finished;
185
- pub use super :: build_queued_0_1_1 as build_queued;
186
- pub use super :: build_started_0_1_1 as build_started;
187
- pub use super :: change_abandoned_0_1_2 as change_abandoned;
188
- pub use super :: change_created_0_2_0 as change_created;
189
- pub use super :: change_merged_0_1_2 as change_merged;
190
- pub use super :: change_reviewed_0_1_2 as change_reviewed;
191
- pub use super :: change_updated_0_1_2 as change_updated;
192
- pub use super :: environment_created_0_1_1 as environment_created;
193
- pub use super :: environment_deleted_0_1_1 as environment_deleted;
194
- pub use super :: environment_modified_0_1_1 as environment_modified;
195
- pub use super :: incident_detected_0_1_0 as incident_detected;
196
- pub use super :: incident_reported_0_1_0 as incident_reported;
197
- pub use super :: incident_resolved_0_1_0 as incident_resolved;
198
- pub use super :: pipelinerun_finished_0_1_1 as pipelinerun_finished;
199
- pub use super :: pipelinerun_queued_0_1_1 as pipelinerun_queued;
200
- pub use super :: pipelinerun_started_0_1_1 as pipelinerun_started;
201
- pub use super :: repository_created_0_1_1 as repository_created;
202
- pub use super :: repository_deleted_0_1_1 as repository_deleted;
203
- pub use super :: repository_modified_0_1_1 as repository_modified;
204
- pub use super :: service_deployed_0_1_1 as service_deployed;
205
- pub use super :: service_published_0_1_1 as service_published;
206
- pub use super :: service_removed_0_1_1 as service_removed;
207
- pub use super :: service_rolledback_0_1_1 as service_rolledback;
208
- pub use super :: service_upgraded_0_1_1 as service_upgraded;
209
- pub use super :: taskrun_finished_0_1_1 as taskrun_finished;
210
- pub use super :: taskrun_started_0_1_1 as taskrun_started;
211
- pub use super :: testcaserun_finished_0_1_0 as testcaserun_finished;
212
- pub use super :: testcaserun_queued_0_1_0 as testcaserun_queued;
213
- pub use super :: testcaserun_started_0_1_0 as testcaserun_started;
214
- pub use super :: testoutput_published_0_1_0 as testoutput_published;
215
- pub use super :: testsuiterun_finished_0_1_0 as testsuiterun_finished;
216
- pub use super :: testsuiterun_queued_0_1_0 as testsuiterun_queued;
217
- pub use super :: testsuiterun_started_0_1_0 as testsuiterun_started;
218
- }
219
179
pub mod spec_0_4_1 {
220
180
pub use super :: artifact_deleted_0_1_0 as artifact_deleted;
221
181
pub use super :: artifact_downloaded_0_1_0 as artifact_downloaded;
@@ -284,7 +244,6 @@ pub const BUILD_STARTED_0_1_1: &str = "dev.cdevents.build.started.0.1.1";
284
244
pub const BUILD_STARTED_0_2_0 : & str = "dev.cdevents.build.started.0.2.0" ;
285
245
pub const CHANGE_ABANDONED_0_1_2 : & str = "dev.cdevents.change.abandoned.0.1.2" ;
286
246
pub const CHANGE_ABANDONED_0_2_0 : & str = "dev.cdevents.change.abandoned.0.2.0" ;
287
- pub const CHANGE_CREATED_0_2_0 : & str = "dev.cdevents.change.created.0.2.0" ;
288
247
pub const CHANGE_CREATED_0_1_2 : & str = "dev.cdevents.change.created.0.1.2" ;
289
248
pub const CHANGE_CREATED_0_3_0 : & str = "dev.cdevents.change.created.0.3.0" ;
290
249
pub const CHANGE_MERGED_0_1_2 : & str = "dev.cdevents.change.merged.0.1.2" ;
@@ -373,7 +332,6 @@ pub enum Content {
373
332
BuildStarted020 ( build_started_0_2_0:: Content ) ,
374
333
ChangeAbandoned012 ( change_abandoned_0_1_2:: Content ) ,
375
334
ChangeAbandoned020 ( change_abandoned_0_2_0:: Content ) ,
376
- ChangeCreated020 ( change_created_0_2_0:: Content ) ,
377
335
ChangeCreated012 ( change_created_0_1_2:: Content ) ,
378
336
ChangeCreated030 ( change_created_0_3_0:: Content ) ,
379
337
ChangeMerged012 ( change_merged_0_1_2:: Content ) ,
@@ -529,10 +487,6 @@ impl Content {
529
487
let variant: change_abandoned_0_2_0:: Content = serde_json:: from_value ( json) ?;
530
488
Ok ( variant. into ( ) )
531
489
} ,
532
- CHANGE_CREATED_0_2_0 => {
533
- let variant: change_created_0_2_0:: Content = serde_json:: from_value ( json) ?;
534
- Ok ( variant. into ( ) )
535
- } ,
536
490
CHANGE_CREATED_0_1_2 => {
537
491
let variant: change_created_0_1_2:: Content = serde_json:: from_value ( json) ?;
538
492
Ok ( variant. into ( ) )
@@ -822,7 +776,6 @@ impl Content {
822
776
Self :: BuildStarted020 ( _) => BUILD_STARTED_0_2_0 ,
823
777
Self :: ChangeAbandoned012 ( _) => CHANGE_ABANDONED_0_1_2 ,
824
778
Self :: ChangeAbandoned020 ( _) => CHANGE_ABANDONED_0_2_0 ,
825
- Self :: ChangeCreated020 ( _) => CHANGE_CREATED_0_2_0 ,
826
779
Self :: ChangeCreated012 ( _) => CHANGE_CREATED_0_1_2 ,
827
780
Self :: ChangeCreated030 ( _) => CHANGE_CREATED_0_3_0 ,
828
781
Self :: ChangeMerged012 ( _) => CHANGE_MERGED_0_1_2 ,
@@ -913,7 +866,6 @@ impl Content {
913
866
Self :: BuildStarted020 ( _) => "build" ,
914
867
Self :: ChangeAbandoned012 ( _) => "change" ,
915
868
Self :: ChangeAbandoned020 ( _) => "change" ,
916
- Self :: ChangeCreated020 ( _) => "change" ,
917
869
Self :: ChangeCreated012 ( _) => "change" ,
918
870
Self :: ChangeCreated030 ( _) => "change" ,
919
871
Self :: ChangeMerged012 ( _) => "change" ,
@@ -1004,7 +956,6 @@ impl Content {
1004
956
Self :: BuildStarted020 ( _) => "started" ,
1005
957
Self :: ChangeAbandoned012 ( _) => "abandoned" ,
1006
958
Self :: ChangeAbandoned020 ( _) => "abandoned" ,
1007
- Self :: ChangeCreated020 ( _) => "created" ,
1008
959
Self :: ChangeCreated012 ( _) => "created" ,
1009
960
Self :: ChangeCreated030 ( _) => "created" ,
1010
961
Self :: ChangeMerged012 ( _) => "merged" ,
@@ -1099,7 +1050,6 @@ pub fn extract_subject_predicate(ty: &str) -> Option<(&str, &str)>{
1099
1050
BUILD_STARTED_0_2_0 => Some ( ( "build" , "started" ) ) ,
1100
1051
CHANGE_ABANDONED_0_1_2 => Some ( ( "change" , "abandoned" ) ) ,
1101
1052
CHANGE_ABANDONED_0_2_0 => Some ( ( "change" , "abandoned" ) ) ,
1102
- CHANGE_CREATED_0_2_0 => Some ( ( "change" , "created" ) ) ,
1103
1053
CHANGE_CREATED_0_1_2 => Some ( ( "change" , "created" ) ) ,
1104
1054
CHANGE_CREATED_0_3_0 => Some ( ( "change" , "created" ) ) ,
1105
1055
CHANGE_MERGED_0_1_2 => Some ( ( "change" , "merged" ) ) ,
@@ -1268,11 +1218,6 @@ impl From<change_abandoned_0_2_0::Content> for Content {
1268
1218
Self :: ChangeAbandoned020 ( value)
1269
1219
}
1270
1220
}
1271
- impl From < change_created_0_2_0:: Content > for Content {
1272
- fn from ( value : change_created_0_2_0:: Content ) -> Self {
1273
- Self :: ChangeCreated020 ( value)
1274
- }
1275
- }
1276
1221
impl From < change_created_0_1_2:: Content > for Content {
1277
1222
fn from ( value : change_created_0_1_2:: Content ) -> Self {
1278
1223
Self :: ChangeCreated012 ( value)
@@ -1622,7 +1567,6 @@ impl<> proptest::arbitrary::Arbitrary for Content {
1622
1567
any:: <build_started_0_2_0:: Content >( ) . prop_map( Content :: from) ,
1623
1568
any:: <change_abandoned_0_1_2:: Content >( ) . prop_map( Content :: from) ,
1624
1569
any:: <change_abandoned_0_2_0:: Content >( ) . prop_map( Content :: from) ,
1625
- any:: <change_created_0_2_0:: Content >( ) . prop_map( Content :: from) ,
1626
1570
any:: <change_created_0_1_2:: Content >( ) . prop_map( Content :: from) ,
1627
1571
any:: <change_created_0_3_0:: Content >( ) . prop_map( Content :: from) ,
1628
1572
any:: <change_merged_0_1_2:: Content >( ) . prop_map( Content :: from) ,
@@ -1738,8 +1682,6 @@ impl<> proptest::arbitrary::Arbitrary for Content {
1738
1682
//
1739
1683
// assert_eq!(extract_subject_predicate(CHANGE_ABANDONED_0_2_0), Some(("change","abandoned")));
1740
1684
//
1741
- // assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_2_0), Some(("change","created")));
1742
- //
1743
1685
// assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_1_2), Some(("change","created")));
1744
1686
//
1745
1687
// assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_3_0), Some(("change","created")));
0 commit comments