#NEWLINE# @ click . command ( name = 'release' , help = 'Create a release in Github' ) #NEWLINE# @ click . argument ( 'version' ) #NEWLINE# @ click . argument ( 'commit' ) #NEWLINE# @ pass_config #NEWLINE# def github_release( config , version , commit ) : #NEWLINE# #INDENT# env = get_env_cumulusci ( config ) #NEWLINE# env . update ( get_env_github ( config ) ) #NEWLINE# env . update ( get_env_build ( config ) ) #NEWLINE# env [ 'BUILD_COMMIT' ] = commit #NEWLINE# env [ 'PACKAGE_VERSION' ] = version #NEWLINE# env [ 'PREFIX_BETA' ] = env . prefix_beta #NEWLINE# if config . tag_message : #NEWLINE# #INDENT# env [ 'MESSAGE' ] = config . tag_message #NEWLINE# #UNINDENT# required_env = [ 'GITHUB_ORG_NAME' , 'GITHUB_REPO_NAME' , 'GITHUB_USERNAME' , 'GITHUB_PASSWORD' , 'BUILD_COMMIT' , 'PACKAGE_VERSION' , 'BUILD_WORKSPACE' , 'PREFIX_BETA' ] #NEWLINE# p = run_python_script ( 'github/create_release.py' , env , config , required_env = required_env )