Skip to content

Commit f0824c4

Browse files
committed
save commit on test pass
1 parent 1997afc commit f0824c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/state/actions/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ export default (dispatch: CR.EditorDispatch) => ({
107107
testStart() {
108108
dispatch('coderoad.run_test')
109109
},
110-
testPass() {
110+
testPass(context: CR.MachineContext): void {
111111
dispatch('coderoad.test_pass')
112+
git.gitSaveCommit(context.position)
112113
},
113114
testFail() {
114115
dispatch('coderoad.test_fail')

0 commit comments

Comments
 (0)