Use github API instead of shell commands