Add 'to-github-api-structure' function