MCPcopy Index your code
hub / github.com/rilldata/rill / githubAppInstallationURL

Method githubAppInstallationURL

admin/server/github.go:1242–1254  ·  view source on GitHub ↗
(state githubConnectState)

Source from the content-addressed store, hash-verified

1240}
1241
1242func (s *Server) githubAppInstallationURL(state githubConnectState) (string, error) {
1243 res := fmt.Sprintf("https://github.com/apps/%s/installations/new", s.opts.GithubAppName)
1244 if state.isEmpty() {
1245 return res, nil
1246 }
1247
1248 stateJSON, err := json.Marshal(state)
1249 if err != nil {
1250 return res, fmt.Errorf("failed to marshal github app installation state: %w", err)
1251 }
1252
1253 return urlutil.MustWithQuery(res, map[string]string{"state": string(stateJSON)}), nil
1254}
1255
1256func fromStringPtr(s *string) string {
1257 if s == nil {

Callers 1

githubConnectMethod · 0.95

Calls 3

MustWithQueryFunction · 0.92
ErrorfMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected