feat: list group keywords
This commit is contained in:
		
							parent
							
								
									f5ba04b8e7
								
							
						
					
					
						commit
						64ae632003
					
				|  | @ -129,9 +129,13 @@ func parseMsg(confRoot, confName, msg string) (conf Conf, group string, err erro | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 	if strings.Contains( | 	groupKeywords := []string{"joj"} | ||||||
| 		strings.ToLower(conventionalCommit.Description), "joj") { | 	for _, groupKeyword := range groupKeywords { | ||||||
| 		group = "joj" | 		if strings.Contains( | ||||||
|  | 			strings.ToLower(conventionalCommit.Description), groupKeyword) { | ||||||
|  | 			group = groupKeyword | ||||||
|  | 			break | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	slog.Debug("conf loaded", "conf", conf) | 	slog.Debug("conf loaded", "conf", conf) | ||||||
| 	return | 	return | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user