Skip to content

Commit

Permalink
Merge pull request #33 from atomist-skills/expose-retryable-status
Browse files Browse the repository at this point in the history
expose retryable status
  • Loading branch information
chrispatrick authored Jan 3, 2024
2 parents 4924252 + 969f43b commit 8cba03d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ func NewFailedStatus(reason string) Status {
}
}

func NewRetryableStatus(reason string) Status {
return Status{
State: retryable,
Reason: reason,
}
}

func sendStatus(ctx context.Context, req RequestContext, status Status) error {
// Don't send the status when evaluating policies locally
if os.Getenv("SCOUT_LOCAL_POLICY_EVALUATION") == "true" {
Expand Down

0 comments on commit 8cba03d

Please sign in to comment.