move files into root of repo

This commit is contained in:
2025-06-15 19:18:08 +01:00
parent 3a8a846bdb
commit ad6e3dddf1
4 changed files with 69 additions and 94 deletions

16
context.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"context"
"github.com/google/go-github/v72/github"
)
type contextKey string
const clientKey contextKey = "client"
func getClientFromContext(ctx context.Context) (*github.Client, bool) {
client, ok := ctx.Value(clientKey).(*github.Client)
return client, ok
}