Function
getCurrentUsername
(username string, hostname string, apiClient *api.Client)
Source from the content-addressed store, hash-verified
| 187 | } |
| 188 | |
| 189 | func getCurrentUsername(username string, hostname string, apiClient *api.Client) (string, error) { |
| 190 | if username == "@me" && ghauth.IsEnterprise(hostname) { |
| 191 | var err error |
| 192 | username, err = api.CurrentLoginName(apiClient, hostname) |
| 193 | if err != nil { |
| 194 | return "", err |
| 195 | } |
| 196 | } |
| 197 | return username, nil |
| 198 | } |
| 199 | |
| 200 | func pullRequestFragment(conflictStatus bool, statusCheckRollupWithCountByState bool) (string, error) { |
| 201 | fields := []string{ |