@@ -23,7 +23,6 @@ pub mod build_started_0_1_1;
2323pub mod build_started_0_2_0;
2424pub mod change_abandoned_0_1_2;
2525pub mod change_abandoned_0_2_0;
26- pub mod change_created_0_2_0;
2726pub mod change_created_0_1_2;
2827pub mod change_created_0_3_0;
2928pub mod change_merged_0_1_2;
@@ -177,45 +176,6 @@ pub mod spec_0_3_0 {
177176 pub use super :: testsuiterun_queued_0_1_0 as testsuiterun_queued;
178177 pub use super :: testsuiterun_started_0_1_0 as testsuiterun_started;
179178}
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- }
219179pub mod spec_0_4_1 {
220180 pub use super :: artifact_deleted_0_1_0 as artifact_deleted;
221181 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";
284244pub const BUILD_STARTED_0_2_0 : & str = "dev.cdevents.build.started.0.2.0" ;
285245pub const CHANGE_ABANDONED_0_1_2 : & str = "dev.cdevents.change.abandoned.0.1.2" ;
286246pub 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" ;
288247pub const CHANGE_CREATED_0_1_2 : & str = "dev.cdevents.change.created.0.1.2" ;
289248pub const CHANGE_CREATED_0_3_0 : & str = "dev.cdevents.change.created.0.3.0" ;
290249pub const CHANGE_MERGED_0_1_2 : & str = "dev.cdevents.change.merged.0.1.2" ;
@@ -373,7 +332,6 @@ pub enum Content {
373332 BuildStarted020 ( build_started_0_2_0:: Content ) ,
374333 ChangeAbandoned012 ( change_abandoned_0_1_2:: Content ) ,
375334 ChangeAbandoned020 ( change_abandoned_0_2_0:: Content ) ,
376- ChangeCreated020 ( change_created_0_2_0:: Content ) ,
377335 ChangeCreated012 ( change_created_0_1_2:: Content ) ,
378336 ChangeCreated030 ( change_created_0_3_0:: Content ) ,
379337 ChangeMerged012 ( change_merged_0_1_2:: Content ) ,
@@ -529,10 +487,6 @@ impl Content {
529487 let variant: change_abandoned_0_2_0:: Content = serde_json:: from_value ( json) ?;
530488 Ok ( variant. into ( ) )
531489 } ,
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- } ,
536490 CHANGE_CREATED_0_1_2 => {
537491 let variant: change_created_0_1_2:: Content = serde_json:: from_value ( json) ?;
538492 Ok ( variant. into ( ) )
@@ -822,7 +776,6 @@ impl Content {
822776 Self :: BuildStarted020 ( _) => BUILD_STARTED_0_2_0 ,
823777 Self :: ChangeAbandoned012 ( _) => CHANGE_ABANDONED_0_1_2 ,
824778 Self :: ChangeAbandoned020 ( _) => CHANGE_ABANDONED_0_2_0 ,
825- Self :: ChangeCreated020 ( _) => CHANGE_CREATED_0_2_0 ,
826779 Self :: ChangeCreated012 ( _) => CHANGE_CREATED_0_1_2 ,
827780 Self :: ChangeCreated030 ( _) => CHANGE_CREATED_0_3_0 ,
828781 Self :: ChangeMerged012 ( _) => CHANGE_MERGED_0_1_2 ,
@@ -913,7 +866,6 @@ impl Content {
913866 Self :: BuildStarted020 ( _) => "build" ,
914867 Self :: ChangeAbandoned012 ( _) => "change" ,
915868 Self :: ChangeAbandoned020 ( _) => "change" ,
916- Self :: ChangeCreated020 ( _) => "change" ,
917869 Self :: ChangeCreated012 ( _) => "change" ,
918870 Self :: ChangeCreated030 ( _) => "change" ,
919871 Self :: ChangeMerged012 ( _) => "change" ,
@@ -1004,7 +956,6 @@ impl Content {
1004956 Self :: BuildStarted020 ( _) => "started" ,
1005957 Self :: ChangeAbandoned012 ( _) => "abandoned" ,
1006958 Self :: ChangeAbandoned020 ( _) => "abandoned" ,
1007- Self :: ChangeCreated020 ( _) => "created" ,
1008959 Self :: ChangeCreated012 ( _) => "created" ,
1009960 Self :: ChangeCreated030 ( _) => "created" ,
1010961 Self :: ChangeMerged012 ( _) => "merged" ,
@@ -1099,7 +1050,6 @@ pub fn extract_subject_predicate(ty: &str) -> Option<(&str, &str)>{
10991050 BUILD_STARTED_0_2_0 => Some ( ( "build" , "started" ) ) ,
11001051 CHANGE_ABANDONED_0_1_2 => Some ( ( "change" , "abandoned" ) ) ,
11011052 CHANGE_ABANDONED_0_2_0 => Some ( ( "change" , "abandoned" ) ) ,
1102- CHANGE_CREATED_0_2_0 => Some ( ( "change" , "created" ) ) ,
11031053 CHANGE_CREATED_0_1_2 => Some ( ( "change" , "created" ) ) ,
11041054 CHANGE_CREATED_0_3_0 => Some ( ( "change" , "created" ) ) ,
11051055 CHANGE_MERGED_0_1_2 => Some ( ( "change" , "merged" ) ) ,
@@ -1268,11 +1218,6 @@ impl From<change_abandoned_0_2_0::Content> for Content {
12681218 Self :: ChangeAbandoned020 ( value)
12691219 }
12701220}
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- }
12761221impl From < change_created_0_1_2:: Content > for Content {
12771222 fn from ( value : change_created_0_1_2:: Content ) -> Self {
12781223 Self :: ChangeCreated012 ( value)
@@ -1622,7 +1567,6 @@ impl<> proptest::arbitrary::Arbitrary for Content {
16221567 any:: <build_started_0_2_0:: Content >( ) . prop_map( Content :: from) ,
16231568 any:: <change_abandoned_0_1_2:: Content >( ) . prop_map( Content :: from) ,
16241569 any:: <change_abandoned_0_2_0:: Content >( ) . prop_map( Content :: from) ,
1625- any:: <change_created_0_2_0:: Content >( ) . prop_map( Content :: from) ,
16261570 any:: <change_created_0_1_2:: Content >( ) . prop_map( Content :: from) ,
16271571 any:: <change_created_0_3_0:: Content >( ) . prop_map( Content :: from) ,
16281572 any:: <change_merged_0_1_2:: Content >( ) . prop_map( Content :: from) ,
@@ -1738,8 +1682,6 @@ impl<> proptest::arbitrary::Arbitrary for Content {
17381682//
17391683// assert_eq!(extract_subject_predicate(CHANGE_ABANDONED_0_2_0), Some(("change","abandoned")));
17401684//
1741- // assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_2_0), Some(("change","created")));
1742- //
17431685// assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_1_2), Some(("change","created")));
17441686//
17451687// assert_eq!(extract_subject_predicate(CHANGE_CREATED_0_3_0), Some(("change","created")));
0 commit comments