// NewClient creates a new client.
NewClient creates a new client.
// NewClient creates a new client .
func NewClient(token string) *github.Client {
	ctx := context.Background()
	ts := oauth2.StaticTokenSource(
		&oauth2.Token{AccessToken: token},
	)
	tc := oauth2.NewClient(ctx, ts)
	return github.NewClient(tc)
}
func NewClient ( token string ) * github . Client { ctx := context . Background ( ) ts := oauth2 . StaticTokenSource ( & oauth2 . Token { AccessToken : token } , ) tc := oauth2 . NewClient ( ctx , ts ) return github . NewClient ( tc ) }
NewClient creates a new client.
NewClient creates a new client .