File tree 3 files changed +3
-4
lines changed
web-app/src/services/state/actions
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,7 @@ export async function getCommitMessage(hash: string): Promise<string | null> {
179
179
180
180
export async function commitsExistsByMessage ( message : string ) : Promise < boolean > {
181
181
try {
182
- // returns an list of commit hashes
183
- // note: may not work with quotes in message
182
+ // returns a list of commit hashes
184
183
const { stdout, stderr } = await exec ( { command : `git log -g --grep='${ message } '` } )
185
184
if ( stderr ) {
186
185
return false
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const onError = async (error: Error): Promise<void> => {
48
48
}
49
49
50
50
export const onStepComplete = async ( { levelId, stepId } : { levelId : string ; stepId : string } ) : Promise < void > => {
51
- git . saveCommit ( ' Save progress' )
51
+ git . saveCommit ( ` Save progress: ${ stepId } ` )
52
52
logger ( `ON STEP COMPLETE: ${ JSON . stringify ( { levelId, stepId } ) } ` )
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export default (editorSend: any) => ({
138
138
type : 'EDITOR_STEP_COMPLETE' ,
139
139
payload : {
140
140
levelId : context . position . levelId ,
141
- stepId : context . position . levelId ,
141
+ stepId : context . position . stepId ,
142
142
} ,
143
143
} )
144
144
} ,
You can’t perform that action at this time.
0 commit comments