Skip to content

Commit

Permalink
! Rename every url field into uri
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
  • Loading branch information
davidB committed Nov 19, 2024
1 parent e4e8e1e commit cc5754a
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions cloudevents-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ description: >
CloudEvents Binding for CDEvents
---
-->
# CloudEvents Binding for CDEvents
# CloudEvents Binding for CDEvents <!-- omit in toc -->

## Abstract
## Abstract <!-- omit in toc -->

The CloudEvents Binding for CDEvents defines how CDEvents are mapped to CloudEvents headers and body.

## Table Of Contents
## Table Of Contents <!-- omit in toc -->

<!-- toc -->
- [CloudEvents Context](#cloudevents-context)
Expand Down Expand Up @@ -113,7 +113,7 @@ Content-Length: nnnn
"type": "taskRun",
"content": {
"task": "my-task",
"url": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123"
"uri": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123"
"pipelineRun": {
"id": "/somewherelse/pipelinerun-123",
"source": "/staging/jenkins/"
Expand Down
2 changes: 1 addition & 1 deletion conformance/environment_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "environment",
"content": {
"name": "testEnv",
"url": "https://example.org/testEnv"
"uri": "https://example.org/testEnv"
}
}
}
2 changes: 1 addition & 1 deletion conformance/environment_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "environment",
"content": {
"name": "testEnv",
"url": "https://example.org/testEnv"
"uri": "https://example.org/testEnv"
}
}
}
2 changes: 1 addition & 1 deletion conformance/pipelinerun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123",
"uri": "https://www.example.com/mySubject123",
"outcome": "failure",
"errors": "Something went wrong\nWith some more details"
}
Expand Down
2 changes: 1 addition & 1 deletion conformance/pipelinerun_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123"
"uri": "https://www.example.com/mySubject123"
}
}
}
2 changes: 1 addition & 1 deletion conformance/pipelinerun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123"
"uri": "https://www.example.com/mySubject123"
}
}
}
2 changes: 1 addition & 1 deletion conformance/repository_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"content": {
"name": "TestRepo",
"owner": "TestOrg",
"url": "https://example.org/TestOrg/TestRepo",
"uri": "https://example.org/TestOrg/TestRepo",
"viewUrl": "https://example.org/view/TestOrg/TestRepo"
}
}
Expand Down
2 changes: 1 addition & 1 deletion conformance/repository_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"content": {
"name": "TestRepo",
"owner": "TestOrg",
"url": "https://example.org/TestOrg/TestRepo",
"uri": "https://example.org/TestOrg/TestRepo",
"viewUrl": "https://example.org/view/TestOrg/TestRepo"
}
}
Expand Down
2 changes: 1 addition & 1 deletion conformance/repository_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"content": {
"name": "TestRepo",
"owner": "TestOrg",
"url": "https://example.org/TestOrg/TestRepo",
"uri": "https://example.org/TestOrg/TestRepo",
"viewUrl": "https://example.org/view/TestOrg/TestRepo"
}
}
Expand Down
2 changes: 1 addition & 1 deletion conformance/taskrun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "taskRun",
"content": {
"taskName": "myTask",
"url": "https://www.example.com/mySubject123",
"uri": "https://www.example.com/mySubject123",
"pipelineRun": {
"id": "mySubject123"
},
Expand Down
2 changes: 1 addition & 1 deletion conformance/taskrun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "taskRun",
"content": {
"taskName": "myTask",
"url": "https://www.example.com/mySubject123",
"uri": "https://www.example.com/mySubject123",
"pipelineRun": {
"id": "mySubject123"
}
Expand Down
6 changes: 3 additions & 3 deletions links.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ systems to act accordingly based off the ending notation.
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123"
"uri": "https://www.example.com/mySubject123"
}
}
}
Expand Down Expand Up @@ -221,7 +221,7 @@ further, we can allow for a path link between `pipelinerun.queued` to the
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123"
"uri": "https://www.example.com/mySubject123"
}
}
}
Expand Down Expand Up @@ -433,7 +433,7 @@ sender generates this id.
"type": "pipelineRun",
"content": {
"pipelineName": "myPipeline",
"url": "https://www.example.com/mySubject123"
"uri": "https://www.example.com/mySubject123"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/environmentcreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"name": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/environmentmodified.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"name": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/pipelinerunfinished.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"pipelineName": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/pipelinerunqueued.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"pipelineName": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/pipelinerunstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"pipelineName": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/repositorycreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"owner": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/repositorydeleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"owner": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/repositorymodified.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"owner": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/taskrunfinished.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"taskName": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/taskrunstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"taskName": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/testsuiterunqueued.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"name": {
"type": "string"
},
"url": {
"uri": {
"type": "string",
"format": "uri"
}
Expand Down
4 changes: 2 additions & 2 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ defined in the [vocabulary](#vocabulary):
```json
"content" : {
"task": "my-task",
"url": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123"
"uri": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123"
}
```

Expand Down Expand Up @@ -468,7 +468,7 @@ The following example shows `context` and `subject` together, rendered as JSON.
"type": "taskRun",
"content": {
"task": "my-task",
"url": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123",
"uri": "/apis/tekton.dev/v1beta1/namespaces/default/taskruns/my-taskrun-123",
"pipelineRun": {
"id": "my-distributed-pipelinerun",
"source": "/tenant1/tekton/"
Expand Down

0 comments on commit cc5754a

Please sign in to comment.