Skip to content

Feature/on reset #388

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 9 commits into from
Jul 12, 2020
Prev Previous commit
Next Next commit
setup last pass commit hash
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jul 12, 2020
commit 72771c410c5da6a60864731361312c5518a43d9a
4 changes: 4 additions & 0 deletions src/channel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ class Channel implements Channel {
await exec({ command: tutorial.config.reset.command })
}
return
case 'EDITOR_RUN_RESET_TO_LAST_PASS':
return
case 'EDITOR_RUN_RESET_TO_TIMELINE':
return
default:
logger(`No match for action type: ${actionType}`)
return
Expand Down
12 changes: 12 additions & 0 deletions src/services/git/lastPass.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as TT from '../../../typings/tutorial'
import * as T from '../../../typings'

const getLastPassCommitHash = (position: T.Position, levels: TT.Level[]) => {
// get previous position
const { levelId, stepId } = position

// get solution hash if it exists
// else get setup hash
}

export default getLastPassCommitHash