Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add github.go for github client #1

Merged
merged 1 commit into from
Aug 14, 2022
Merged

add github.go for github client #1

merged 1 commit into from
Aug 14, 2022

Conversation

Songmu
Copy link
Owner

@Songmu Songmu commented Aug 14, 2022

No description provided.

github.go Outdated
func client(ctx context.Context, token, baseURL string) (*github.Client, error) {
if token == "" {
var err error
token, err = gitconfig.GithubToken(baseURL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <compile> reported by reviewdog 🐶
GithubToken not declared by package gitconfig

"golang.org/x/oauth2"
)

func client(ctx context.Context, token, baseURL string) (*github.Client, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [staticcheck] <U1000> reported by reviewdog 🐶
func client is unused

@Songmu Songmu merged commit 06e9e02 into main Aug 14, 2022
@Songmu Songmu deleted the create-pr branch August 14, 2022 17:52
This was referenced Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant