fix: empty commit
This commit is contained in:
		
							parent
							
								
									1eb096c1db
								
							
						
					
					
						commit
						e2b280b70c
					
				|  | @ -98,8 +98,16 @@ func commitMsgToConf() (conf Conf, err error) { | |||
| 	if err != nil { | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	file := "conf.toml" | ||||
| 
 | ||||
| 	msg := commit.Message | ||||
| 	slog.Debug("commit msg to conf", "msg", msg) | ||||
| 	if msg == "" { | ||||
| 		conf, err = parseConfFile(file) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	line := strings.Split(msg, "\n")[0] | ||||
| 
 | ||||
| 	words := strings.Fields(line) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 zzjc1234
						zzjc1234