Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e16bbc66
Commit
e16bbc66
authored
Nov 07, 2015
by
Don
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use [auth.github] -> api_url property; supports git enterprise
parent
d7ee7cb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pkg/social/social.go
+3
-3
No files found.
pkg/social/social.go
View file @
e16bbc66
...
@@ -193,7 +193,7 @@ func (s *SocialGithub) FetchPrivateEmail(client *http.Client) (string, error) {
...
@@ -193,7 +193,7 @@ func (s *SocialGithub) FetchPrivateEmail(client *http.Client) (string, error) {
Verified
bool
`json:"verified"`
Verified
bool
`json:"verified"`
}
}
emailsUrl
:=
fmt
.
Sprintf
(
"https://api.github.com/user
/emails"
)
emailsUrl
:=
fmt
.
Sprintf
(
s
.
apiUrl
+
"
/emails"
)
r
,
err
:=
client
.
Get
(
emailsUrl
)
r
,
err
:=
client
.
Get
(
emailsUrl
)
if
err
!=
nil
{
if
err
!=
nil
{
return
""
,
err
return
""
,
err
...
@@ -222,7 +222,7 @@ func (s *SocialGithub) FetchTeamMemberships(client *http.Client) ([]int, error)
...
@@ -222,7 +222,7 @@ func (s *SocialGithub) FetchTeamMemberships(client *http.Client) ([]int, error)
Id
int
`json:"id"`
Id
int
`json:"id"`
}
}
membershipUrl
:=
fmt
.
Sprintf
(
"https://api.github.com/user
/teams"
)
membershipUrl
:=
fmt
.
Sprintf
(
s
.
apiUrl
+
"
/teams"
)
r
,
err
:=
client
.
Get
(
membershipUrl
)
r
,
err
:=
client
.
Get
(
membershipUrl
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -249,7 +249,7 @@ func (s *SocialGithub) FetchOrganizations(client *http.Client) ([]string, error)
...
@@ -249,7 +249,7 @@ func (s *SocialGithub) FetchOrganizations(client *http.Client) ([]string, error)
Login
string
`json:"login"`
Login
string
`json:"login"`
}
}
url
:=
fmt
.
Sprintf
(
"https://api.github.com/user
/orgs"
)
url
:=
fmt
.
Sprintf
(
s
.
apiUrl
+
"
/orgs"
)
r
,
err
:=
client
.
Get
(
url
)
r
,
err
:=
client
.
Get
(
url
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment