Documentation
¶
Index ¶
- Constants
- func Log(ctx context.Context) *zap.SugaredLogger
- func RunData(ctx context.Context) map[string]string
- func WithLog(parent context.Context, logger *zap.SugaredLogger) context.Context
- func WithRunData(ctx context.Context, data map[string]string) context.Context
- type CheckoutPath
- type PullRequestKey
- type RepositoryKey
Constants ¶
View Source
const ( RunDataKeyAssignees = "sb.assignees" RunDataKeyReviewers = "sb.reviewers" )
Variables ¶
This section is empty.
Functions ¶
func Log ¶ added in v0.16.0
func Log(ctx context.Context) *zap.SugaredLogger
Log returns the logger from the context. If the context doesn't contain a logger then it returns the default logger.
func RunData ¶ added in v0.8.0
RunData reads and returns plugin data from the context. It initialize the map if the context does not contain plugin data.
func WithRunData ¶ added in v0.16.0
WithRunData adds run data to the context.Context. If the context already contains run data, then it updates the existing map. If a key in the map already exists then it gets overwritten.
Types ¶
type CheckoutPath ¶
type CheckoutPath struct{}
type PullRequestKey ¶ added in v0.2.0
type PullRequestKey struct{}
type RepositoryKey ¶
type RepositoryKey struct{}
Click to show internal directories.
Click to hide internal directories.