Monorepo for Tangled tangled.org
854
fork

Configure Feed

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

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 <me@oppi.li>

+3 -1
+2
docs/DOCS.md
··· 830 830 831 831 - `CI` - Always set to `true` to indicate a CI environment 832 832 - `TANGLED_PIPELINE_ID` - The AT URI of the current pipeline 833 + - `TANGLED_PIPELINE_KIND` - One of `push`, `pull_request` or 834 + `manual` 833 835 - `TANGLED_REPO_KNOT` - The repository's knot hostname 834 836 - `TANGLED_REPO_DID` - The DID of the repository owner 835 837 - `TANGLED_REPO_NAME` - The name of the repository
+1 -1
spindle/models/pipeline_env.go
··· 21 21 env["CI"] = "true" 22 22 23 23 env["TANGLED_PIPELINE_ID"] = pipelineId.AtUri().String() 24 - env["TANGLED_EVENT_NAME"] = tr.Kind 24 + env["TANGLED_PIPELINE_KIND"] = tr.Kind 25 25 26 26 // Repo info 27 27 if tr.Repo != nil {