bump to 1.0.0

This commit is contained in:
2025-06-19 04:39:43 +01:00
parent f4ddb45fd2
commit bae71b983e
3 changed files with 7 additions and 10 deletions

View File

@@ -10,13 +10,13 @@ type contextKey string
var clientKey = contextKey("client")
// withClient returns a new context with the GitHub client set.
func withClient(ctx context.Context, client *github.Client) context.Context {
// WithClient returns a new context with the GitHub client set.
func WithClient(ctx context.Context, client *github.Client) context.Context {
return context.WithValue(ctx, clientKey, client)
}
// clientFromContext retrieves the GitHub client from the context.
func clientFromContext(ctx context.Context) (*github.Client, bool) {
// ClientFromContext retrieves the GitHub client from the context.
func ClientFromContext(ctx context.Context) (*github.Client, bool) {
client, ok := ctx.Value(clientKey).(*github.Client)
return client, ok
}