From bcb7237a41f584cef6045fbffe59f9ddeeb9106e Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 08 May 2026 12:38:55 +0000 Subject: [PATCH] spindle,docs: rename TANGLED_EVENT_NAME to TANGLED_PIPELINE_KIND the PIPELINE prefix is to match TANGLED_PIPELINE_ID, and the `_KIND` is because we refer to this as trigger "kind" everywhere else. Signed-off-by: oppiliappan --- docs/DOCS.md | 2 ++ spindle/models/pipeline_env.go | 2 +- 2 file(s) changed, 3 insertion(s)(+), 1 deletion(s)(-) diff --git a/docs/DOCS.md b/docs/DOCS.md --- a/docs/DOCS.md +++ b/docs/DOCS.md @@ -830,6 +830,8 @@ By default, the following environment variables are set: - `CI` - Always set to `true` to indicate a CI environment - `TANGLED_PIPELINE_ID` - The AT URI of the current pipeline +- `TANGLED_PIPELINE_KIND` - One of `push`, `pull_request` or + `manual` - `TANGLED_REPO_KNOT` - The repository's knot hostname - `TANGLED_REPO_DID` - The DID of the repository owner - `TANGLED_REPO_NAME` - The name of the repository diff --git a/spindle/models/pipeline_env.go b/spindle/models/pipeline_env.go --- a/spindle/models/pipeline_env.go +++ b/spindle/models/pipeline_env.go @@ -21,7 +21,7 @@ // Standard CI environment variable env["CI"] = "true" env["TANGLED_PIPELINE_ID"] = pipelineId.AtUri().String() - env["TANGLED_EVENT_NAME"] = tr.Kind + env["TANGLED_PIPELINE_KIND"] = tr.Kind // Repo info if tr.Repo != nil { -- tangled.sh