Skip to content

Commit

Permalink
Move branch and change events to 0.1.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
afrittoli committed Oct 25, 2022
1 parent 905fc11 commit c2bf2b0
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 14 deletions.
1 change: 0 additions & 1 deletion schemas/branchcreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/branchdeleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/changeabandoned.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/changecreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/changemerged.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/changereviewed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
1 change: 0 additions & 1 deletion schemas/changeupdated.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"version": {
"type": "string",
"enum": [
"0.1.0",
"0.1.1"
],
"default": "0.1.1"
Expand Down
14 changes: 7 additions & 7 deletions source-code-version-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down

0 comments on commit c2bf2b0

Please sign in to comment.