mirror of
https://github.com/cooperspencer/gickup.git
synced 2025-05-10 17:25:34 +02:00
use no user for token auth if token is used (#314)
This commit is contained in:
parent
36fd4fa6c0
commit
06a97f1f8a
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
|||
Description: r.GetDescription(),
|
||||
Private: r.GetPrivate(),
|
||||
Issues: GetIssues(r, client, repo),
|
||||
NoTokenUser: true,
|
||||
})
|
||||
wiki := addWiki(*r, repo, token)
|
||||
if wiki.Name != "" {
|
||||
|
@ -309,6 +310,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
|||
Description: r.GetDescription(),
|
||||
Private: r.GetPrivate(),
|
||||
Issues: GetIssues(r, client, repo),
|
||||
NoTokenUser: true,
|
||||
})
|
||||
wiki := addWiki(*r, repo, token)
|
||||
if wiki.Name != "" {
|
||||
|
@ -329,6 +331,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
|||
Description: r.GetDescription(),
|
||||
Private: r.GetPrivate(),
|
||||
Issues: GetIssues(r, client, repo),
|
||||
NoTokenUser: true,
|
||||
})
|
||||
wiki := addWiki(*r, repo, token)
|
||||
if wiki.Name != "" {
|
||||
|
@ -366,6 +369,7 @@ func Get(conf *types.Conf) ([]types.Repo, bool) {
|
|||
Hoster: "github.com",
|
||||
Description: gist.GetDescription(),
|
||||
Private: !gist.GetPublic(),
|
||||
NoTokenUser: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue