Skip to content

Commit e64b473

Browse files
committed
save progress with stepId
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent 7f663cc commit e64b473

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Diff for: src/services/git/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ export async function getCommitMessage(hash: string): Promise<string | null> {
179179

180180
export async function commitsExistsByMessage(message: string): Promise<boolean> {
181181
try {
182-
// returns an list of commit hashes
183-
// note: may not work with quotes in message
182+
// returns a list of commit hashes
184183
const { stdout, stderr } = await exec({ command: `git log -g --grep='${message}'` })
185184
if (stderr) {
186185
return false

Diff for: src/services/hooks/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const onError = async (error: Error): Promise<void> => {
4848
}
4949

5050
export const onStepComplete = async ({ levelId, stepId }: { levelId: string; stepId: string }): Promise<void> => {
51-
git.saveCommit('Save progress')
51+
git.saveCommit(`Save progress: ${stepId}`)
5252
logger(`ON STEP COMPLETE: ${JSON.stringify({ levelId, stepId })}`)
5353
}
5454

Diff for: web-app/src/services/state/actions/editor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default (editorSend: any) => ({
138138
type: 'EDITOR_STEP_COMPLETE',
139139
payload: {
140140
levelId: context.position.levelId,
141-
stepId: context.position.levelId,
141+
stepId: context.position.stepId,
142142
},
143143
})
144144
},

0 commit comments

Comments
 (0)