Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite64b473

Browse files
committed
save progress with stepId
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent7f663cc commite64b473

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

‎src/services/git/index.ts

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

180180
exportasyncfunctioncommitsExistsByMessage(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}=awaitexec({command:`git log -g --grep='${message}'`})
185184
if(stderr){
186185
returnfalse

‎src/services/hooks/index.ts

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

5050
exportconstonStepComplete=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

‎web-app/src/services/state/actions/editor.ts

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp