create new repo using github api

How is this different from what's happening here: https://github.com/miltontony/unicore-mc/pull/5/files#diff-cfbd53eb7022e8dc9b36819d7bd13e17R38?