From c2bf2b0fa3ba75649fa2160bf273d4e34ec213b5 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Mon, 24 Oct 2022 12:01:59 -0400 Subject: [PATCH] Move branch and change events to 0.1.1 The schema for branch and change events was updated to make the repository non-mandatory. Update the event version in the spec. Update the valid spec version in the schema, so that events 0.1.1 are only available in spec 0.1.1. --- schemas/branchcreated.json | 1 - schemas/branchdeleted.json | 1 - schemas/changeabandoned.json | 1 - schemas/changecreated.json | 1 - schemas/changemerged.json | 1 - schemas/changereviewed.json | 1 - schemas/changeupdated.json | 1 - source-code-version-control.md | 14 +++++++------- 8 files changed, 7 insertions(+), 14 deletions(-) diff --git a/schemas/branchcreated.json b/schemas/branchcreated.json index 136a8732..6b25fbc1 100644 --- a/schemas/branchcreated.json +++ b/schemas/branchcreated.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/branchdeleted.json b/schemas/branchdeleted.json index 2aa8d8a9..782adf3e 100644 --- a/schemas/branchdeleted.json +++ b/schemas/branchdeleted.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/changeabandoned.json b/schemas/changeabandoned.json index d84942da..b49f7128 100644 --- a/schemas/changeabandoned.json +++ b/schemas/changeabandoned.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/changecreated.json b/schemas/changecreated.json index 656067b3..21f50f23 100644 --- a/schemas/changecreated.json +++ b/schemas/changecreated.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/changemerged.json b/schemas/changemerged.json index 3570a13f..ffdafccb 100644 --- a/schemas/changemerged.json +++ b/schemas/changemerged.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/changereviewed.json b/schemas/changereviewed.json index d20ba2ed..f9b23b91 100644 --- a/schemas/changereviewed.json +++ b/schemas/changereviewed.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/schemas/changeupdated.json b/schemas/changeupdated.json index 8060e7c6..58136d40 100644 --- a/schemas/changeupdated.json +++ b/schemas/changeupdated.json @@ -7,7 +7,6 @@ "version": { "type": "string", "enum": [ - "0.1.0", "0.1.1" ], "default": "0.1.1" diff --git a/source-code-version-control.md b/source-code-version-control.md index 2587c54d..cf9a3917 100644 --- a/source-code-version-control.md +++ b/source-code-version-control.md @@ -110,7 +110,7 @@ A Source Code Repository modified some of its attributes, like location, or owne A branch inside the Repository was created. -- Event Type: __`dev.cdevents.branch.created.0.1.0`__ +- Event Type: __`dev.cdevents.branch.created.0.1.1`__ - Predicate: created - Subject: [`branch`](#branch) @@ -124,7 +124,7 @@ A branch inside the Repository was created. A branch inside the Repository was deleted. -- Event Type: __`dev.cdevents.branch.deleted.0.1.0`__ +- Event Type: __`dev.cdevents.branch.deleted.0.1.1`__ - Predicate: deleted - Subject: [`branch`](#branch) @@ -138,7 +138,7 @@ A branch inside the Repository was deleted. A source code change was created and submitted to a repository specific branch. Examples: PullRequest sent to Github, MergeRequest sent to Gitlab, Change created in Gerrit. -- Event Type: __`dev.cdevents.change.created.0.1.0`__ +- Event Type: __`dev.cdevents.change.created.0.1.1`__ - Predicate: created - Subject: [`change`](#change) @@ -152,7 +152,7 @@ A source code change was created and submitted to a repository specific branch. Someone (user) or an automated system submitted an review to the source code change. A user or an automated system needs to be in charge of understanding how many approvals/rejections are needed for this change to be merged or rejected. The review event needs to include if the change is approved by the reviewer, more changes are needed or if the change is rejected. -- Event Type: __`dev.cdevents.change.reviewed.0.1.0`__ +- Event Type: __`dev.cdevents.change.reviewed.0.1.1`__ - Predicate: reviewed - Subject: [`change`](#change) @@ -166,7 +166,7 @@ Someone (user) or an automated system submitted an review to the source code cha A change is merged to the target branch where it was submitted. -- Event Type: __`dev.cdevents.change.merged.0.1.0`__ +- Event Type: __`dev.cdevents.change.merged.0.1.1`__ - Predicate: merged - Subject: [`change`](#change) @@ -180,7 +180,7 @@ A change is merged to the target branch where it was submitted. A tool or a user decides that the change has been inactive for a while and it can be considered abandoned. -- Event Type: __`dev.cdevents.change.abandoned.0.1.0`__ +- Event Type: __`dev.cdevents.change.abandoned.0.1.1`__ - Predicate: abandoned - Subject: [`change`](#change) @@ -194,7 +194,7 @@ A tool or a user decides that the change has been inactive for a while and it ca A Change has been updated, for example a new commit is added or removed from an existing Change. -- Event Type: __`dev.cdevents.change.updated.0.1.0`__ +- Event Type: __`dev.cdevents.change.updated.0.1.1`__ - Predicate: updated - Subject: [`change`](#change)