Skip to content

Support webhook in the coderoad cli #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add webhook typings
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Sep 4, 2021
commit 7eba915e513734e0055ab7cd16a971e1c7181dfe
13 changes: 13 additions & 0 deletions typings/tutorial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type TutorialConfig = {
dependencies?: TutorialDependency[]
reset?: ConfigReset
setup?: StepActions
webhook?: WebhookConfig
}

/** Logical groupings of tasks */
Expand Down Expand Up @@ -91,3 +92,15 @@ export interface TutorialSkeleton {
config: TutorialConfig
levels: Level[]
}

export interface WebhookConfigEvents {
init?: boolean
reset?: boolean
step_complete?: boolean
level_complete?: boolean
tutorial_complete?: boolean
}
export interface WebhookConfig {
url: string
events?: WebhookConfigEvents
}