mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 20:55:47 +00:00
test(gh): add utils tests to gh
This commit is contained in:
@@ -41,6 +41,13 @@ func ContainsUser(users []User, user User) bool {
|
||||
})
|
||||
}
|
||||
|
||||
func CheckUserFields(user User) bool {
|
||||
if user.Shortname == "" || user.Longname == "" || user.Username == "" || user.Email == "" {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func Define_users(author_file string) {
|
||||
// wipe the users map
|
||||
Users = map[string]User{}
|
||||
|
||||
Reference in New Issue
Block a user