MCPcopy Create free account
hub / github.com/rilldata/rill / GithubConnectRetryUI

Method GithubConnectRetryUI

admin/urls.go:276–285  ·  view source on GitHub ↗

GithubConnectRetryUI returns the page in the Rill frontend for retrying the Github connect flow.

(remote, redirect string)

Source from the content-addressed store, hash-verified

274
275// GithubConnectRetryUI returns the page in the Rill frontend for retrying the Github connect flow.
276func (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.
288func (u *URLs) GithubConnectRequestUI(remote string) string {

Callers 1

githubConnectCallbackMethod · 0.80

Calls 2

MustJoinURLFunction · 0.92
MustWithQueryFunction · 0.92

Tested by

no test coverage detected