Provide better errors for unsupported event types (#68)

* Validate event type during restore

* PR Feedback

* Format

* Linting
This commit is contained in:
Josh Gross 2019-11-13 10:54:39 -05:00 committed by GitHub
parent 50a2fdee6f
commit b7d83b4095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 134 additions and 3 deletions

View file

@ -12,3 +12,9 @@ export enum State {
CacheKey = "CACHE_KEY",
CacheResult = "CACHE_RESULT"
}
export enum Events {
Key = "GITHUB_EVENT_NAME",
Push = "push",
PullRequest = "pull_request"
}