def generate_GitHub_token(*, note="<STR_LIT>", scopes=None, **login_kwargs):
if scopes is None:<EOL><INDENT>scopes = ['<STR_LIT>']<EOL><DEDENT>AUTH_URL = "<STR_LIT>"<EOL>data = {<EOL>"<STR_LIT>": scopes,<EOL>"<STR_LIT>": note,<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": str(uuid.uuid4()),<EOL>}<EOL>return GitHub_post(data, AUTH_URL, **login_kwargs)<EOL>
Generate a GitHub token for pushing from Travis

The scope requested is public_repo.

If no password or OTP are provided, they will be requested from the
command line.

The token created here can be revoked at
https://github.com/settings/tokens.