Custom Hooks Environment Variables

I see in this post:How to use custom Git Hooks Some environment variables usable for hooks.

I’ve grabbed the Repo for for a hook I’m writing to push a repo to another server.

Is it possible to get the organisation name as well?

Hi, what does it mean “the organization name”?

“HomeAutomation” would be the organisation I’d be expecting, where docker is the repository returned by the variable GOGS_REPO_NAME

GOGS_REPO_OWNER_NAME seems the one you’re looking for: https://sourcegraph.com/github.com/gogs/[email protected]/-/blob/internal/db/repo_editor.go#L37:32