@usine/config/payload-slices
Variables
Section titled “Variables”environmentFor
Section titled “environmentFor”
constenvironmentFor: (stream) =>Environment
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
stream |
Stream |
Returns
Section titled “Returns”issueEnvironment
Section titled “issueEnvironment”
constissueEnvironment:Environment
The CEL environment for issue triggers: the item type mirrors the issue payload slice.
pullRequestEnvironment
Section titled “pullRequestEnvironment”
constpullRequestEnvironment:Environment
The CEL environment for pull-request triggers: the item type mirrors the pull-request payload slice.
repositoryContext
Section titled “repositoryContext”
constrepositoryContext: (repository) =>Schema.JsonObject
The value of the CEL repo variable. A field added here must also be added
to the RepoContext type, and the reverse.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
repository |
ManagedRepo |
Returns
Section titled “Returns”Schema.JsonObject
scheduleEnvironment
Section titled “scheduleEnvironment”
constscheduleEnvironment:Environment
The CEL environment for schedule triggers: item.tick has scheduledAt, scheduledAtLocal, cron, and tz.