use no user for token auth if token is used (#314)

This commit is contained in:
Andreas Wachter 2025-04-05 16:55:19 +02:00 committed by GitHub
parent 36fd4fa6c0
commit 06a97f1f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})
}