Stitch any CI into Tangled
151
fork

Configure Feed

Select the types of activity you want to include in your feed.

provider/tekton: add tangled metadata as params

This allows you to do tests against the individual commit being operated
against instead of just the most recent commit on HEAD. These are a
no-op when pipelines do not use these parameters.

Example usage:

```yaml
steps:
- name: git-clone
image: reg.xeiaso.net/xe/x/git:latest
script: |
set -euo pipefail
git clone $(params.url) /workspace/repo-data/repo
cd /workspace/repo-data/repo
git checkout $(params.commit)
```

Signed-off-by: Xe Iaso <me@xeiaso.net>

authored by

Xe Iaso and committed by
Tangled
a318f262 d6fcf40a

+14
+14
provider_tekton.go
··· 245 245 "pipelineRef": map[string]any{ 246 246 "name": cfg.Pipeline, 247 247 }, 248 + "params": []any{ 249 + map[string]any{ 250 + "name": "commit", 251 + "value": commit, 252 + }, 253 + map[string]any{ 254 + "name": "branch", 255 + "value": branch, 256 + }, 257 + map[string]any{ 258 + "name": "actor", 259 + "value": actor, 260 + }, 261 + }, 248 262 }, 249 263 } 250 264 spec := obj["spec"].(map[string]any)