Method
addCommitterAndAuthor
(m *map[string]interface{})
Source from the content-addressed store, hash-verified
| 958 | } |
| 959 | |
| 960 | func (d *Github) addCommitterAndAuthor(m *map[string]interface{}) { |
| 961 | if d.CommitterName != "" { |
| 962 | committer := map[string]string{ |
| 963 | "name": d.CommitterName, |
| 964 | "email": d.CommitterEmail, |
| 965 | } |
| 966 | (*m)["committer"] = committer |
| 967 | } |
| 968 | if d.AuthorName != "" { |
| 969 | author := map[string]string{ |
| 970 | "name": d.AuthorName, |
| 971 | "email": d.AuthorEmail, |
| 972 | } |
| 973 | (*m)["author"] = author |
| 974 | } |
| 975 | } |
Tested by
no test coverage detected