File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
web-app/src/services/state/actions Expand file tree Collapse file tree 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> {
179179
180180export 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
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const onError = async (error: Error): Promise<void> => {
4848}
4949
5050export 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
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments