Skip to content

@usine/config/payload-slices

const environmentFor: (stream) => Environment

Parameter Type
stream Stream

Environment


const issueEnvironment: Environment

The CEL environment for issue triggers: the item type mirrors the issue payload slice.


const pullRequestEnvironment: Environment

The CEL environment for pull-request triggers: the item type mirrors the pull-request payload slice.


const repositoryContext: (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.

Parameter Type
repository ManagedRepo

Schema.JsonObject


const scheduleEnvironment: Environment

The CEL environment for schedule triggers: item.tick has scheduledAt, scheduledAtLocal, cron, and tz.