Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit a1b75d3

Browse files
committed
using the context
1 parent 70a6a48 commit a1b75d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewContext(ctx context.Context, token string) (context.Context, error) {
1616
ts := oauth2.StaticTokenSource(
1717
&oauth2.Token{AccessToken: token},
1818
)
19-
tc := oauth2.NewClient(context.Background(), ts)
19+
tc := oauth2.NewClient(ctx, ts)
2020

2121
return context.WithValue(ctx, githubKey, github.NewClient(tc)), nil
2222
}

0 commit comments

Comments
 (0)