Initial commit, pt. 23

This commit is contained in:
Dmitrii Okunev
2024-06-29 16:17:55 +01:00
parent bbe098fdfb
commit e50b1c958a
7 changed files with 502 additions and 420 deletions

16
pkg/repository/github.go Normal file
View File

@@ -0,0 +1,16 @@
package repository
import (
"github.com/google/go-github/v62/github"
)
type GitHub struct {
Client *github.Client
}
func NewGitHub() *GitHub {
client := github.NewClient(nil).WithAuthToken("... your access token ...")
return &GitHub{
Client: client,
}
}