GithubConnectRetryUI returns the page in the Rill frontend for retrying the Github connect flow.
(remote, redirect string)
| 274 | |
| 275 | // GithubConnectRetryUI returns the page in the Rill frontend for retrying the Github connect flow. |
| 276 | func (u *URLs) GithubConnectRetryUI(remote, redirect string) string { |
| 277 | res := urlutil.MustJoinURL(u.frontend, "/-/github/connect/retry-install") // NOTE: Always using the primary frontend URL. |
| 278 | if remote != "" { |
| 279 | res = urlutil.MustWithQuery(res, map[string]string{"remote": remote}) |
| 280 | } |
| 281 | if redirect != "" { |
| 282 | res = urlutil.MustWithQuery(res, map[string]string{"redirect": redirect}) |
| 283 | } |
| 284 | return res |
| 285 | } |
| 286 | |
| 287 | // GithubConnectRequestUI returns the page in the Rill frontend for requesting a Github connect. |
| 288 | func (u *URLs) GithubConnectRequestUI(remote string) string { |
no test coverage detected