GithubConnect returns the URL that starts the Github connect redirects.
(remote string)
| 242 | |
| 243 | // GithubConnect returns the URL that starts the Github connect redirects. |
| 244 | func (u *URLs) GithubConnect(remote string) string { |
| 245 | res := urlutil.MustJoinURL(u.external, "/github/connect") // NOTE: Always using the primary external URL. |
| 246 | if remote != "" { |
| 247 | res = urlutil.MustWithQuery(res, map[string]string{"remote": remote}) |
| 248 | } |
| 249 | return res |
| 250 | } |
| 251 | |
| 252 | // GithubAuth returns the URL that starts the Github auth redirects. |
| 253 | func (u *URLs) GithubAuth(remote string) string { |
no test coverage detected