Skip to content

Commit

Permalink
Add link to example files in documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Austen Adler <austen.adler@fmr.com>
  • Loading branch information
austenadler authored and afrittoli committed Jul 31, 2023
1 parent 6120974 commit c7d7cf8
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 40 deletions.
16 changes: 8 additions & 8 deletions continuous-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ A `service` can represent for example a binary that is running, a daemon, an app

## Events

### `environment created`
### [`environment created`](examples/environment_created.json)

This event represents an environment that has been created. Such an environment can be used to deploy services in.

Expand All @@ -63,7 +63,7 @@ This event represents an environment that has been created. Such an environment
| name | `String` | Name of the environment | `dev`, `staging`, `production`, `ci-123`| |
| url | `String` | URL to reference where the environment is located | `https://my-cluster.zone.my-cloud-provider`| |

### `environment modified`
### [`environment modified`](examples/environment_modified.json)

This event represents an environment that has been modified.

Expand All @@ -79,7 +79,7 @@ This event represents an environment that has been modified.
| name | `String` | Name of the environment | `dev`, `staging`, `production`, `ci-123`| |
| url | `String` | URL to reference where the environment is located | `https://my-cluster.zone.my-cloud-provider`| |

### `environment deleted`
### [`environment deleted`](examples/environment_deleted.json)

This event represents an environment that has been deleted.```

Expand All @@ -94,7 +94,7 @@ This event represents an environment that has been deleted.```
| type | `String` | See [type](spec.md#type-subject) | `environment` | |
| name | `String` | Name of the environment | `dev`, `staging`, `production`, `ci-123`| |

### `service deployed`
### [`service deployed`](examples/service_deployed.json)

This event represents a new instance of a service that has been deployed

Expand All @@ -110,7 +110,7 @@ This event represents a new instance of a service that has been deployed
| environment | `Object` ([`environment`](#environment)) | Reference for the environment where the service runs | `{"id": "1234"}`, `{"id": "maven123, "source": "tekton-dev-123"}` ||
| artifactId | `Purl` | Identifier of the artifact deployed with this service | `0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `927aa808433d17e315a258b98e2f1a55f8258e0cb782ccb76280646d0dbe17b5`, `six-1.14.0-py2.py3-none-any.whl` ||

### `service upgraded`
### [`service upgraded`](examples/service_upgraded.json)

This event represents an existing instance of a service that has been upgraded to a new version

Expand All @@ -126,7 +126,7 @@ This event represents an existing instance of a service that has been upgraded t
| environment | `Object` ([`environment`](#environment)) | Reference for the environment where the service runs | `{"id": "1234"}`, `{"id": "maven123, "source": "tekton-dev-123"}` ||
| artifactId | `Purl` | Identifier of the artifact deployed with this service |`pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c` ||

### `service rolledback`
### [`service rolledback`](examples/service_rolledback.json)

This event represents an existing instance of a service that has been rolled back to a previous version

Expand All @@ -142,7 +142,7 @@ This event represents an existing instance of a service that has been rolled bac
| environment | `Object` ([`environment`](#environment)) | Reference for the environment where the service runs | `{"id": "1234"}`, `{"id": "maven123, "source": "tekton-dev-123"}` ||
| artifactId | `Purl` | Identifier of the artifact deployed with this service | `pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c` ||

### `service removed`
### [`service removed`](examples/service_removed.json)

This event represents the removal of a previously deployed service instance and is thus not longer present in the specified environment

Expand All @@ -157,7 +157,7 @@ This event represents the removal of a previously deployed service instance and
| type | `String` | See [type](spec.md#type-subject) | `service` | |
| environment | `Object` ([`environment`](#environment)) | Reference for the environment where the service runs | `{"id": "1234"}`, `{"id": "maven123, "source": "tekton-dev-123"}` ||

### `service published`
### [`service published`](examples/service_published.json)

This event represents an existing instance of a service that has an accessible URL for users to interact with it. This event can be used to let other tools know that the service is ready and also available for consumption.

Expand Down
12 changes: 6 additions & 6 deletions continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ An `artifact` is usually produced as output of a build process. Events need to b

## Events

### `build queued`
### [`build queued`](examples/build_queued.json)

This event represents a Build task that has been queued; this build process usually is in charge of producing a binary from source code.

Expand All @@ -64,7 +64,7 @@ This event represents a Build task that has been queued; this build process usua
| source | `URI-Reference` | See [source](spec.md#source-subject) | | |
| type | `String` | See [type](spec.md#type-subject) | `build` | |

### `build started`
### [`build started`](examples/build_started.json)

This event represents a Build task that has been started; this build process usually is in charge of producing a binary from source code.

Expand All @@ -78,7 +78,7 @@ This event represents a Build task that has been started; this build process usu
| source | `URI-Reference` | See [source](spec.md#source-subject) | | |
| type | `String` | See [type](spec.md#type-subject) | `build` | |

### `build finished`
### [`build finished`](examples/build_finished.json)

This event represents a Build task that has finished. This event will eventually contain the finished status, success, error or failure

Expand All @@ -93,7 +93,7 @@ This event represents a Build task that has finished. This event will eventually
| type | `String` | See [type](spec.md#type-subject) | |
| artifactId | `Purl` | Identifier of the artifact produced by the build | `pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c` | `build` | |

### `artifact packaged`
### [`artifact packaged`](examples/artifact_packaged.json)

The event represents an artifact that has been packaged for distribution; this artifact is now versioned with a fixed version.

Expand All @@ -108,7 +108,7 @@ The event represents an artifact that has been packaged for distribution; this a
| type | `String` | See [type](spec.md#type-subject) | `artifact` | |
| change | `object` | The change (tag, commit, revision) of the repository which was used to build the artifact" | `{"id": "527d4a1aca5e8d0df24813df5ad65d049fc8d312", "source": "my-git.example/an-org/a-repo"}`, `{"id": "feature1234", "source": "my-git.example/an-org/a-repo"}` ||

### `artifact published`
### [`artifact published`](examples/artifact_published.json)

The event represents an artifact that has been published and it can be advertised for others to use.

Expand All @@ -122,7 +122,7 @@ The event represents an artifact that has been published and it can be advertise
| source | `URI-Reference` | See [source](spec.md#source-subject) | | |
| type | `String` | See [type](spec.md#type-subject) | `artifact` | |

### `artifact signed`
### [`artifact signed`](examples/artifact_signed.json)

The event represents an artifact that has been signed. The signature is included in the events itself.
An artifact may be signed after it has been packaged or sometimes after it has published, depending on the tooling being used and the type of artifact.
Expand Down
8 changes: 4 additions & 4 deletions continuous-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ An `incident` represents a problem in a production environment.

## Events

### `incident detected`
### [`incident detected`](examples/incident_detected.json)

This event represents an incident that has been detected by a system or human.

Expand All @@ -54,7 +54,7 @@ This event represents an incident that has been detected by a system or human.
| service | `Object` ([`service`](./continuous-deployment.md#service)) | Reference to the service | `{"id": "service123"}`, `{"id": "service123", "source": "region1/k8s/namespace"}` | |
| artifactId | `Purl` | Identifier of the artifact deployed with this service | `0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `927aa808433d17e315a258b98e2f1a55f8258e0cb782ccb76280646d0dbe17b5`, `six-1.14.0-py2.py3-none-any.whl` | |

### `incident reported`
### [`incident reported`](examples/incident_reported.json)

This event represents an incident that has been reported through a ticketing system. Compared to the `detected` predicated, it introduces a ticket URI.

Expand All @@ -73,7 +73,7 @@ This event represents an incident that has been reported through a ticketing sys
| service | `Object` ([`service`](./continuous-deployment.md#service)) | Reference to the service | `{"id": "service123"}`, `{"id": "service123", "source": "region1/k8s/namespace"}` | |
| artifactId | `Purl` | Identifier of the artifact deployed with this service | `0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `927aa808433d17e315a258b98e2f1a55f8258e0cb782ccb76280646d0dbe17b5`, `six-1.14.0-py2.py3-none-any.whl` | |

### `incident resolved`
### [`incident resolved`](examples/incident_resolved.json)

This event represents an incident that has been resolved, meaning that the problem identified by the incident has been solved or recalled.

Expand All @@ -91,4 +91,4 @@ This event represents an incident that has been resolved, meaning that the probl
| service | `Object` ([`service`](./continuous-deployment.md#service)) | Reference to the service | `{"id": "service123"}`, `{"id": "service123", "source": "region1/k8s/namespace"}` | |
| artifactId | `Purl` | Identifier of the artifact deployed with this service | `0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427`, `927aa808433d17e315a258b98e2f1a55f8258e0cb782ccb76280646d0dbe17b5`, `six-1.14.0-py2.py3-none-any.whl` | |

[incident]: https://csrc.nist.gov/glossary/term/incident
[incident]: https://csrc.nist.gov/glossary/term/incident
10 changes: 5 additions & 5 deletions core.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ associated, in which case it is acceptable to generate only taskRun events.

## Events

### `pipelineRun queued`
### [`pipelineRun queued`](examples/pipelinerun_queued.json)

Due the dynamic nature of Pipelines, most of actual work needs to be queued to
happen in a distributed way, hence queued events are added. Adopters can choose
Expand All @@ -80,7 +80,7 @@ to ignore these events if they don't apply to their use cases.
| pipelineName | `String` | The name of the pipeline | `MyPipeline`, `Unit tests for my repo` | |
| url | `URI` | url to the `pipelineRun` | `https://dashboard.org/namespace/pipelinerun-1234`, `https://api.cdsystem.com/namespace/pipelinerun-1234` | |

### `pipelineRun Started`
### [`pipelineRun Started`](examples/pipelinerun_started.json)

A pipelineRun has started and it is running.

Expand All @@ -96,7 +96,7 @@ A pipelineRun has started and it is running.
| pipelineName | `String` | The name of the pipeline | `MyPipeline`, `Unit tests for my repo` | |
| url | `URI` | url to the `pipelineRun` | `https://dashboard.org/namespace/pipelinerun-1234`, `https://api.cdsystem.com/namespace/pipelinerun-1234` | |

### `pipelineRun Finished`
### [`pipelineRun Finished`](examples/pipelinerun_finished.json)

A pipelineRun has finished, successfully or not.

Expand All @@ -114,7 +114,7 @@ A pipelineRun has finished, successfully or not.
| outcome | `Enum` | outcome of a finished `pipelineRun` | `success`, `error` or `failure`| |
| errors | `String` | In case of error or failed pipeline, provides details about the failure | `Invalid input param 123`, `Timeout during execution`, `pipelineRun cancelled by user`, `Unit tests failed`| |

### `taskRun Started`
### [`taskRun Started`](examples/taskrun_started.json)

A taskRun has started and it is running.

Expand All @@ -131,7 +131,7 @@ A taskRun has started and it is running.
| pipelineRun | `Object` ([`pipelineRun`](#pipelinerun)) | The `pipelineRun` that this `taskRun` belongs to. | `{"id": "namespace/pipelinerun-1234"}`| |
| url | `URI` | url to the `taskRun` | `https://dashboard.org/namespace/taskrun-1234`, `https://api.cdsystem.com/namespace/taskrun-1234` | |

### `taskRun Finished`
### [`taskRun Finished`](examples/taskrun_finished.json)

A taskRun has finished, successfully or not.

Expand Down
20 changes: 10 additions & 10 deletions source-code-version-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ A `change` identifies a proposed set of changes to the content of a `repository`

## Events

### `repository created`
### [`repository created`](examples/repository_created.json)

A new Source Code Repository was created to host source code for a project.

Expand All @@ -80,7 +80,7 @@ A new Source Code Repository was created to host source code for a project.
| url | `URI` | URL to the `repository` | `git://my-git.example/an-org/a-repo` ||
| viewUrl | `URI` | URL for humans to view the content of the `repository` | `https://my-git.example/an-org/a-repo/view`| |

### `repository modified`
### [`repository modified`](examples/repository_modified.json)

A Source Code Repository modified some of its attributes, like location, or owner.

Expand All @@ -98,7 +98,7 @@ A Source Code Repository modified some of its attributes, like location, or owne
| url | `URI` | URL to the `repository` | `git://my-git.example/an-org/a-repo` ||
| viewUrl | `URI` | URL for humans to view the content of the `repository` | `https://my-git.example/an-org/a-repo/view`| |

### `repository deleted`
### [`repository deleted`](examples/repository_deleted.json)

- Event Type: __`dev.cdevents.repository.deleted.0.1.1`__
- Predicate: modified
Expand All @@ -114,7 +114,7 @@ A Source Code Repository modified some of its attributes, like location, or owne
| url | `URI` | URL to the `repository` | `git://my-git.example/an-org/a-repo` | |
| viewUrl | `URI` | URL for humans to view the content of the `repository` | `https://my-git.example/an-org/a-repo/view`| |

### `branch created`
### [`branch created`](examples/branch_created.json)

A branch inside the Repository was created.

Expand All @@ -129,7 +129,7 @@ A branch inside the Repository was created.
| type | `String` | See [type](spec.md#type-subject) | `branch` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `branch deleted`
### [`branch deleted`](examples/branch_deleted.json)

A branch inside the Repository was deleted.

Expand All @@ -144,7 +144,7 @@ A branch inside the Repository was deleted.
| type | `String` | See [type](spec.md#type-subject) | `branch` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `change created`
### [`change created`](examples/change_created.json)

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.

Expand All @@ -159,7 +159,7 @@ A source code change was created and submitted to a repository specific branch.
| type | `String` | See [type](spec.md#type-subject) | `change` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `change reviewed`
### [`change reviewed`](examples/change_reviewed.json)

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.

Expand All @@ -174,7 +174,7 @@ Someone (user) or an automated system submitted an review to the source code cha
| type | `String` | See [type](spec.md#type-subject) | `change` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `change merged`
### [`change merged`](examples/change_merged.json)

A change is merged to the target branch where it was submitted.

Expand All @@ -189,7 +189,7 @@ A change is merged to the target branch where it was submitted.
| type | `String` | See [type](spec.md#type-subject) | `change` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `change abandoned`
### [`change abandoned`](examples/change_abandoned.json)

A tool or a user decides that the change has been inactive for a while and it can be considered abandoned.

Expand All @@ -204,7 +204,7 @@ A tool or a user decides that the change has been inactive for a while and it ca
| type | `String` | See [type](spec.md#type-subject) | `change` | |
| repository | `Object` | A reference to the repository where the change event happened | `{"id": "an-org/a-repo"}` | |

### `change updated`
### [`change updated`](examples/change_updated.json)

A Change has been updated, for example a new commit is added or removed from an existing Change.

Expand Down
Loading

0 comments on commit c7d7cf8

Please sign in to comment.