gitsrht-update-hook: Use owner username instead of pusher username Use the owner username to authenticate to the GraphQL API instead of the pusher username. Fixes: https://todo.sr.ht/~sircmpwn/git.sr.ht/362
1 files changed, 1 insertions(+), 1 deletions(-) M gitsrht-update-hook/post-update.go
M gitsrht-update-hook/post-update.go => gitsrht-update-hook/post-update.go +1 -1
@@ 218,7 218,7 @@ func postUpdate() { logger.Fatalf("Failed to open a database connection: %v", err) } dbinfo, err := fetchInfoForPush(db, context.User.Name, context.Repo.Id, context.Repo.Name, context.Repo.Visibility, newDescription, newVisibility) dbinfo, err := fetchInfoForPush(db, context.Repo.OwnerName, context.Repo.Id, context.Repo.Name, context.Repo.Visibility, newDescription, newVisibility) if err != nil { logger.Fatalf("Failed to fetch info from database: %v", err) }