FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sourcegraph/schema/github_util.go at main · oxenprogrammer/sourcegraph · GitHub
oxenprogrammer
/
sourcegraph
Public
forked from
sourcegraph/sourcegraph-public-snapshot
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sourcegraph
/
schema
/
github_util.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (21 loc) · 577 Bytes
Breadcrumbs
sourcegraph
/
schema
/
github_util.go
Copy path
File metadata and controls
24 lines (21 loc) · 577 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package
schema
// DefaultGitHubURL is the default GitHub instance that configuration points to.
const
DefaultGitHubURL
=
"https://github.com/"
// GetURL retrieves the configured GitHub URL or a default if one is not set.
func
(
p
*
GitHubAuthProvider
)
GetURL
()
string
{
if
p
!=
nil
&&
p
.
Url
!=
""
{
return
p
.
Url
}
return
DefaultGitHubURL
}
func
(
c
*
GitHubConnection
)
SetRepos
(
all
bool
,
repos
[]
string
)
error
{
if
all
{
c
.
RepositoryQuery
=
[]
string
{
"affiliated"
}
c
.
Repos
=
nil
return
nil
}
else
{
c
.
RepositoryQuery
=
[]
string
{}
}
c
.
Repos
=
repos
return
nil
}
Back
|
FazBrowse Home
|
New Git URL